X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbuilders%2Fvertexarraybuilder.cpp;h=011a6c0515c59788e1db5675ee65c1f37c2ca9d2;hp=6ede4d2ab60f8a417087f0d784ac0b00642c2114;hb=3a1b9cbe2441ae670a97541dc8ccb0a2860c8302;hpb=7ab13563ec79b45a09f03da73acb15b39e192df9 diff --git a/source/builders/vertexarraybuilder.cpp b/source/builders/vertexarraybuilder.cpp index 6ede4d2a..011a6c05 100644 --- a/source/builders/vertexarraybuilder.cpp +++ b/source/builders/vertexarraybuilder.cpp @@ -14,7 +14,7 @@ void VertexArrayBuilder::vertex_(const Vector4 &vtx) { char *ptr = array.append(); const VertexFormat &format = array.get_format(); - for(const UInt16 *a=format.begin(); a!=format.end(); ++a) + for(const uint16_t *a=format.begin(); a!=format.end(); ++a) { unsigned sem = get_attribute_semantic(*a); bool integer = is_integer_attribute(*a); @@ -25,17 +25,17 @@ void VertexArrayBuilder::vertex_(const Vector4 &vtx) { const Vector4 &value = (sem==0 ? vtx : attr[sem]); if(type==UNSIGNED_BYTE) - store_attribute(ptr, value, !integer, cc); + store_attribute(ptr, value, !integer, cc); else if(type==BYTE) - store_attribute(ptr, value, !integer, cc); + store_attribute(ptr, value, !integer, cc); else if(type==UNSIGNED_SHORT) - store_attribute(ptr, value, !integer, cc); + store_attribute(ptr, value, !integer, cc); else if(type==SHORT) - store_attribute(ptr, value, !integer, cc); + store_attribute(ptr, value, !integer, cc); else if(type==UNSIGNED_INT) - store_attribute(ptr, value, !integer, cc); + store_attribute(ptr, value, !integer, cc); else if(type==INT) - store_attribute(ptr, value, !integer, cc); + store_attribute(ptr, value, !integer, cc); else if(type==FLOAT) store_attribute(ptr, value, false, cc); }