View Full Version : GLdouble & float compatibility
03-25-2002, 04:33 AM
could it be that the GLdouble and float datatypes are extremely incompatible to each other? i just wrote a little routine for frustum culling and it took me 2 days to find that the reason why it wasn't working is that when i cast from GLdouble to float and vice versa, the data gets completely messed up!
03-25-2002, 05:05 AM
GLdouble is a double, GLfloat is a float, type casting from GLdouble to float will loose some precision, but except from that it should work fine, take care of functions calls like printf/sprintf/fprintf so you don't pass a float when it is expecting a double and things like that.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.