Hi, just trying to get my 1st python - openGL program working.
Loaded openGL module, got a openGL window up.
Now I’m trying to draw. I’m referencing some example code from the net, but like most example code, its legacy, so it a tough fight for a complete beginner to update it to openGl 4.5.
display= (300,200)
screen = pygame.display.set_mode(display)
gluPerspective(45, (display[0]/display[1]), 0.1, 50.0)
OpenGL.glColor(1,1,0)
#glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT)
Cube()
pygame.display.flip()
the glcolor command is causing a compile time error. I have to update glcolor to the 4.5 equivalent.
But its a nightmare trying to search the net for it, all google returns are dozens of tutorial pages with enormous walls of text explaining obsolete legacy code.
For me Google is effectively broken for the task of searching for example code for languages with lots of legacy versions.
So help me out please!
Whats the 4.5 version of glcolor? Where’s the link for the programmer reference to openGL 4.5 commands?
thx