I am writing a plugin for motionbuilder and need to use some opengl toolkits which are based on Glut. The problem I have is that inside motionbuilder I already have a window and an opengl context created using the SDK for motionbuilder. But with Glut it wants to create its own window which wont be native to motionbuilder.
How would I get glut to work inside my own window in motionbuilder? somehow I need to make the glut window the child of the motionbuilder window but I am not sure how to do that.
Here is the typical Main() entry point where the glut window is created
int main(int argc,char** argv)
{
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_RGB|GLUT_DOUBLE);
glutInitWindowSize(640,480);
glutInitWindowPosition(300,100);
glutCreateWindow("My_Glut_Window");
glutDisplayFunc(Display); /* Callback Function for display
glutMainLoop();
}
By the way does anyone have a list of good opengl and glut forums?
Thanks in advance.