X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fvertexformat.h;h=018d21f00e5176a322b8cbe262da5d355b762bb1;hp=fb47484b35940b7e873b6d2586d333df0edda802;hb=c4fa55619539de9045167250d5b1c13d1827cf7a;hpb=77656543441a130276e0a37ba119270edd9156ff diff --git a/source/vertexformat.h b/source/vertexformat.h index fb47484b..018d21f0 100644 --- a/source/vertexformat.h +++ b/source/vertexformat.h @@ -44,7 +44,7 @@ public: const unsigned char *begin() const { return data ? data+1 : 0; } const unsigned char *end() const { return data ? data+1+data[0] : 0; } unsigned stride() const; - int offset(VertexComponent, unsigned = 0) const; + int offset(VertexComponent) const; }; inline VertexFormat operator,(VertexComponent c1, VertexComponent c2) @@ -53,6 +53,8 @@ inline VertexFormat operator,(VertexComponent c1, VertexComponent c2) inline VertexFormat operator,(VertexComponent c, unsigned i) { return (VertexFormat(c), i); } +VertexComponent make_indexed_component(VertexComponent, unsigned); + inline unsigned get_component_type(unsigned char c) { return c>>2; }