> #define GL_DEIFINE(name, value) \
> #ifndef name \
> #define name value\
> #endif
>
> Then in the header have:
>
> GL_DEFINE(GL_SAMPLER_1D_ARRAY_EXT, 0x8DC0)
>
> Thoughts?
I agree with this solution... the only problem is to pay attention on all
GL_* definitions inside osg:
OpenSceneGraph/include$ grep "define" * -R | grep GL_ | wc -l
1240
so... I hope sed comes to help us! :)
--
Rafael Gaitán Linares
Instituto de Automática e Informática Industrial http://www.ai2.upv.es
Ciudad Politécnica de la Innovación
Universidad Politécnica de Valencia
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org