GLUT multiple Windows and OpenGL context

Posted by user3511595 on Stack Overflow See other posts from Stack Overflow or by user3511595
Published on 2014-08-20T08:16:09Z Indexed on 2014/08/22 10:20 UTC
Read the original article Hit count: 192

Filed under:
|
|

I would like to use GLUT 3.7 Window Toolkit in a program written in php because i saw that there was a binding in php. I am interesting in having multiple windows ! In order to have a clean code, i was wondering to separate on the one hand the window toolkit and on the other hand the OpenGL implementation. I hope that i can program event with the glut callbacks in php then the application get the events and can interacts ! But i don't know how to draw in each window from php with opengl ? They say in the man page that each glut window has an opengl context. How to get each context ? Can i render offscreen with each context ?

© Stack Overflow or respective owner

Related posts about php

Related posts about opengl