PDA

View Full Version : Debugging OpenGL: Converting GLDouble to char...



gooowe
02-05-2011, 06:24 AM
Dear OpenGL community,

I am trying to convert a GLDouble to a Char so I can printf it for debugging.
How do i do that?

I've searched the tinternet with zero success. I'm using a Mac i.e. in XCode.

NeXEkho
02-05-2011, 06:44 AM
printf( "%f\n", gldWhatever );

?

gooowe
02-05-2011, 07:45 AM
Cheers. I had prinf("%s\n", X); should have been %f.

_ShaderRookie_
02-05-2011, 03:15 PM
You got gDEbugger already?
http://www.gremedy.com/
Very nifty tool to debug OpenGL.