Converted the template DrawElements primitive class into three seperate

non templated classes - UByteDrawElements, UShortDrawElements, UIntDrawElements.
This commit is contained in:
Robert Osfield
2002-06-27 13:15:34 +00:00
parent 532a32416f
commit fb3e705709
7 changed files with 242 additions and 163 deletions

View File

@@ -4,7 +4,7 @@ using namespace osg;
static char* s_ArrayNames[] =
{
"AttributeArray", // 0
"Array", // 0
"ByteArray", // 1
"ShortArray", // 2
"IntArray", // 3
@@ -20,11 +20,11 @@ static char* s_ArrayNames[] =
"Vec4Array", // 11
};
const char* AttributeArray::className() const
const char* Array::className() const
{
if (_arrayType>=AttributeArrayType && _arrayType<=Vec4ArrayType)
if (_arrayType>=ArrayType && _arrayType<=Vec4ArrayType)
return s_ArrayNames[_arrayType];
else
return "UnkownAttributeArray";
return "UnkownArray";
}