Re: Win32Lib + OpenGL = Love

new topic     » goto parent     » topic index » view thread      » older message » newer message

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."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu