BBCode Link
[url=http://www.purearea.net/pb/showcase/show.php?id=70&d=1] [b]glWrapper v.1.0[/b][/url]
With this tiny library you can use all GL-Commands and GLU-Routines
(that originally require doubles) with floats, making them usable
within PureBasic.
It works through simple casting, so values are ?cut?.
Often, the extra-precision isn?t needed anyway.
Don?t like it? Don?t use it!
Note: To use the commands, call them with an additional underscore,
e.g. glOrtho__() instead of glOrtho_().
I wrote this back in june 2002 and finally decided to release this
because I still see lots of questions in the forum regarding OpenGL.
Maybe you?ll find this useful. Use at your own risk!
I hope I didn?t forget anything important, here?s a list of the
wrapped commands and routines:
glClearDepth()
glDepthRange()
glClipPlane()
glFrustum()
glGetClipPlane()
glOrtho()
gluCylinder()
gluDisk()
gluLookAt()
gluOrtho2D()
gluPartialDisk()
gluPerspective()
gluPickMatrix()
gluProject()
gluSphere()
gluTessVertex()
gluUnProject()
|
|
[4 KB] (943 Downloads)
|