|
发表于 2014-4-11 15:43:28
|
显示全部楼层
osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >
8代表你在颜色数组中设置了8组颜色,4是类型,这里有一个枚举的定义:enum Type {
ArrayType = 0, ByteArrayType = 1, ShortArrayType = 2, IntArrayType = 3,
UByteArrayType = 4, UShortArrayType = 5, UIntArrayType = 6, FloatArrayType = 7,
DoubleArrayType = 8, Vec2bArrayType = 9, Vec3bArrayType = 10, Vec4bArrayType = 11,
Vec2sArrayType = 12, Vec3sArrayType = 13, Vec4sArrayType = 14, Vec2iArrayType = 15,
Vec3iArrayType = 16, Vec4iArrayType = 17, Vec2ubArrayType = 18, Vec3ubArrayType = 19,
Vec4ubArrayType = 20, Vec2usArrayType = 21, Vec3usArrayType = 22, Vec4usArrayType = 23,
Vec2uiArrayType = 24, Vec3uiArrayType = 25, Vec4uiArrayType = 26, Vec2ArrayType = 27,
Vec3ArrayType = 28, Vec4ArrayType = 29, Vec2dArrayType = 30, Vec3dArrayType = 31,
Vec4dArrayType = 32, MatrixArrayType = 33, MatrixdArrayType = 34
}
UByteArrayType = 4就是说你的类型是UByteArrayType 无符号字节型数组类型。 |
|