Re: Win32Lib + OpenGL = Love
Chris Burch wrote:
>
> I am playing (very very slowly) with model loading in opengl,
> using basic4gl for testing - much simpler syntax, but translatable to
> eu.
The syntax seems to be the same.
Here's sample code in Basic4GL:
glBegin (GL_TRIANGLES)
glVertex3f (0, 10, -30)
glVertex3f (8, -4, -30)
glVertex3f (-8, -4, -30)
glEnd ()
Here's the same code as used in Euphoria with truegl by Daniel Kluss:
glBegin (GL_TRIANGLES)
glVertex3f (0, 10, -30)
glVertex3f (8, -4, -30)
glVertex3f (-8, -4, -30)
glEnd ()
Yes, they're identical! :)
Also, Evan Marshall has done a huge amount of work translating
the NeHe OpenGL demos into Euphoria. These are a must see for
anybody contemplating using Euphoria and OpenGL.
http://nehe.gamedev.net/
At the bottom of many of the lessons you'll find a list
of translations done into different languages, including Euphoria!
-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/
|
Not Categorized, Please Help
|
|