Re: Win32Lib + OpenGL = Love
- Posted by Chris Burch <chriscrylex at aol.com> Jul 28, 2004
- 541 views
cklester wrote: > > 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. > > <a href="http://nehe.gamedev.net/">http://nehe.gamedev.net/</a> > > 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." > <a > href="http://www.cklester.com/euphoria/">http://www.cklester.com/euphoria/</a> > Hi Yes, you're right! Dammit. Heres my lines
for i = 1 to 100 do puts(1, "I must never question my betters, and always check my definitions") end for
Seriously though, if you put those 5 lines into basic4gl program, it runs, lets see the equivalent _entire_ eu program. I'm beginning to understand opengl, but definately floundering with the (various) eu manifectations of it. Anyway, thanks again for the nice work - I'm going to keep on floundering - lol. Chris and when are we going to get word wrapping on this bally thing!