Page 1 of 1

OpenGL Problem

Posted: Wed Jul 16, 2003 12:46 am
by Diger
I been working with OpenGL but when i call glClearDepth_(1.0).
I get glClearDepth() : Incorrect number of parameters anyone else get this or know a fix :?:

Posted: Wed Jul 16, 2003 7:40 am
by dmoc
void glClearDepth(GLclampd depth)

The "d" at the end of "GLclampd" indicates a double, which PB does not support so you have to find a work around.

Posted: Wed Jul 16, 2003 8:27 am
by Diger
Thx ill see what i can do.

Posted: Wed Jul 16, 2003 12:33 pm
by Kale
Is this of any use?:

http://www.reelmediaproductions.com/pb/ ... GLU32F.zip

Its a user library for calling procedures args to use floats instead of doubles.

p.s. Link might not work if your not logged in, go here to login:

http://www.reelmediaproductions.com/pb

Posted: Sat Jan 10, 2004 2:57 pm
by DarkDragon
Is this of any use?
No, because the GLU32FLibrary can't call gl functions, but glu functions.

Posted: Sat Jan 10, 2004 6:17 pm
by dmoc
Search the forums (or look in the code archive) for single to double conversions.

Posted: Sat Jan 10, 2004 8:07 pm
by benny
Maybe I am wrong ... but could the F64-Lib be of any use for you ?
In the description it says:
Allows the using of Double floats (64 Bit) in PureBasic, for using with function calls (e.g. DLL's) as well (with the help of the many included commands) converting between different data types and calculating mathematical, logical and trigonometrical functions.
You find it on PureArea.net http://www.purearea.net in the Userlibs-Section ?!

Posted: Sat Jan 10, 2004 11:15 pm
by J. Baker
I thought one of the UserLibs supports doubles.

MakeFloatDouble
viewtopic.php?t=8038

Re: OpenGL Problem

Posted: Sun Jan 11, 2004 3:32 pm
by traumatic
This will work for glClearDepth(): viewtopic.php?p=44532