Moved the AttributeArray and Primitive classes into their own header and

source files.
This commit is contained in:
Robert Osfield
2002-06-27 10:50:19 +00:00
parent 726d680184
commit 532a32416f
9 changed files with 363 additions and 316 deletions

30
src/osg/Array.cpp Normal file
View File

@@ -0,0 +1,30 @@
#include <osg/Array>
using namespace osg;
static char* s_ArrayNames[] =
{
"AttributeArray", // 0
"ByteArray", // 1
"ShortArray", // 2
"IntArray", // 3
"UByteArray", // 4
"UShortArray", // 5
"UIntArray", // 6
"UByte4Array", // 7
"FloatArray", // 8
"Vec2Array", // 9
"Vec3Array", // 10
"Vec4Array", // 11
};
const char* AttributeArray::className() const
{
if (_arrayType>=AttributeArrayType && _arrayType<=Vec4ArrayType)
return s_ArrayNames[_arrayType];
else
return "UnkownAttributeArray";
}