]> git.tdb.fi Git - libs/gl.git/commit
Rearrange vertex components
authorMikko Rasa <tdb@tdb.fi>
Sun, 2 Sep 2012 14:50:48 +0000 (17:50 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 2 Sep 2012 14:50:48 +0000 (17:50 +0300)
commit40c364b04084d11573a9ff9f7be6f1c4cc521f4b
tree4296eb8bd4239b086498b97a93c40badecd2f456
parentc4fa55619539de9045167250d5b1c13d1827cf7a
Rearrange vertex components

The first 16 component types are now reserved for the library.  This
leaves room for adding standard generic attributes, such as TBN vectors.
To make further room, texcoords were limited to four indices.

Generic attributes are limited to 24.  Current implementations seem to
only support 16 (the minimum allowed by the spec), so this is not a huge
problem.  There's also exactly enough room for another set of 24 generic
integer attributes.
source/vertexarray.cpp
source/vertexarraybuilder.cpp
source/vertexformat.cpp
source/vertexformat.h