[Development] Changing GLdouble typedef in src/opengl/qgl.h

Saikrishna Arcot saiarcot895 at gmail.com
Wed Sep 3 01:18:02 CEST 2014


Hi,

I was looking at trying to get some libraries and applications to compile in Ubuntu for armhf (which supports only OpenGL ES for performance reasons). When I was trying to get OpenSceneGraph to compile, I noticed that in Qt's src/opengl/qgl.h, GLdouble is aliased to GLfloat. OpenSceneGraph (and some other applications) expect GLdouble and GLfloat to be different things, and some applications typedef GLdouble to double in their own code.

Is there a reason why GLdouble is typedefed to GLfloat? If this was changed to typedef to double instead, is there a risk of breaking something within Qt?

-- 
Saikrishna Arcot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140902/fe03b27c/attachment.sig>


More information about the Development mailing list