Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Legacy OpenGL integration

$
0
0

@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 triangle

glBegin(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

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles