Hi,

Thanks for help. I forgot to create a display list)

a full code is : 

        prDisplayList = glGenLists(1);
        if (prDisplayList != 0){
                glNewList(prDisplayList, GL_COMPILE);
                glBegin(GL_TRIANGLES);
                        glColor3f(1.0f,1.0f,1.0f);
                        glVertex3f(10.0f,10.0f,10.0f);
                        glVertex3f(-10.0f,-10.0f,-10.0f);
                        glVertex3f(-20.0f,10.0f,10.0f);
                glEnd();
                }
        }
    glEndList();

And it works.

Thank you!

Cheers,
Lukas

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26669#26669





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to