Hi Preet,

On 12 December 2012 05:59, Preet <[email protected]> wrote:

> Hiya
>
> I'm using OSG with Qt to create an OpenGL ES 2 application. GL ES2 does
> not have GLdoubles.
>
> When building witHh against ES2, Qt typedefs GLdouble to GLfloat. OSG
> typedefs GLdouble to just 'double'. As a result I get an error when trying
> to compile my application.
>
> How do I get around this?
>
>
It will be an order of include issue, so just be careful which order you
include files, or keep the Qt GL code seperate from the OSG Qt code.
Personally I'm surprised by the Qt downcasting GLdoube to GLfloat, this
could break codes that rely on doubles.  On the OSG side we generally use
floats for all key data that gets passed to OpenGL, it tends to be just
things like glu (which is now part of the OSG) that uses doubles.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to