Log in or register to post comments

Glut|es

July 4, 2011 - 12:31am #1

Hi,

I want to draw some primitives like spheres and cones. I found this library http://glutes.sourceforge.net/. Does somebody have experience with it?

Alex

Re: Glut|es

July 18, 2011 - 2:31pm #5

if you want to draw some primitives you can just define the points in a float array.

e.g.:

float x=.5;
float y=.5;
GLfloat vbVertices[12];
                 vbVertices[0]=-x;
                 vbVertices[1]=y;
                 vbVertices[2]=0.0f;
                 vbVertices[3]=-x;
                 vbVertices[4]=-y;
                 vbVertices[5]=0.0f;
                 vbVertices[6]=x;
                 vbVertices[7]=y;
                 vbVertices[8]=0.0f;
                 vbVertices[9]=x;
                 vbVertices[10]=-y;
                 vbVertices[11]=0.0f;

Re: Glut|es

July 4, 2011 - 1:45am #4

I just had a look at the source code. GLUT|ES unfortunetly uses glBegin() and glEnd(). Maybe I should copy and adapt the needed parts.

Re: Glut|es

July 4, 2011 - 1:29am #3

Ok, I'll try it. Thanks!

Re: Glut|es

July 4, 2011 - 1:17am #2

You'd probably get a better response if you posted this on stackoverflow or something.

Log in or register to post comments