[osg-users] Insert custom Open GL code

Paul Melis paul at science.uva.nl
Mon Mar 23 03:21:00 PDT 2009


Claudio Arduino wrote:
> Hi,
> i Need to insert custom OpenGl code like this:
>
>     glBegin(GL_TRIANGLE_STRIP);
>     glColor3f(1.0, 0.0, 1.0);
>     glVertex3i(0,0,0);
>     glColor3f(1.0, 0.0, 1.0);
>     glVertex3i(2000,2000,0);
>     glVertex3i(0, 2000,0);
>     glEnd();
>     glFlush();
See the osgteapotexample (as suggested in the FAQ on the OSG website)

Paul



More information about the osg-users mailing list