@oxillo wrote:
Hello,
I want to integrate some old OpenGL code (OpenGL 2) into OF.
This code is generated by a code generator so I cannot modify it.
How can I integrate it ?
I've tried to display the famous colored triangleglBegin(GL_TRIANGLES); glColor3f(1.0f,0.0f,0.0f); glVertex3f( 0.0f, 1.0f, 0.0f); glColor3f(0.0f,1.0f,0.0f); glVertex3f(-1.0f,-1.0f, 0.0f); glColor3f(0.0f,0.0f,1.0f); glVertex3f( 1.0f,-1.0f, 0.0f); glEnd();
But I only get the grey background of OF...
Is it possible to integrate such code in OF ?Thanks
Posts: 2
Participants: 2