Re: Win32Lib + OpenGL = Love
- Posted by Chris Burch <chriscrylex at aol.com> Jul 29, 2004
- 552 views
cklester wrote: > > Chris Burch wrote: > > 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 () > > > > 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. > > -- start code > include openGLstuff.ew > > glBegin (GL_TRIANGLES) > glVertex3f (0, 10, -30) > glVertex3f (8, -4, -30) > glVertex3f (-8, -4, -30) > glEnd () > -- end code > > :D > > -=ck > "Programming in a state of EUPHORIA." > <a > href="http://www.cklester.com/euphoria/">http://www.cklester.com/euphoria/</a> > Hi Sorry, couldn't resist this Above program returns ex.err D:\EUPHORIA\010_Graphics_Gaming\TRUEGL2\basic_tri.exw:2 can't find openGLstuff.ew in D:\EUPHORIA\010_Graphics_Gaming\TRUEGL2 or in d:\euphoria\include include openGLstuff.ew See what I mean! Chris