Re: [AD] Vertex Attribute Types

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Thu, Apr 16, 2009 at 9:07 PM, Paul Suntsov <siegelords_abode@xxxxxxxxxx> wrote:

It would be a lot simpler to enforce using only floats... but maybe that is too restrictive?

-SiegeLord

Depending on the target audience, yes. There are valid uses for half floats, integer and boolean vertex attributes. Doubles will also gain in significance in the future, although the primitive addon probably doesn't need to cater to scientific applications et al.

Is it difficult to let the user define his own vertex types? OpenGL provides the API for this and I'd guess D3D does, too (although, unfortunately, plain C doesn't provide runtime reflection which could eliminate this source of errors).


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/