Archived

This topic is now archived and is closed to further replies.

Drath

2 Questions

Recommended Posts

1) I want to run ''CreateGLWindow'' by itself in a dll. I added these lines of code to it: glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Clear The Screen And The Depth Buffer glLoadIdentity(); // Reset The Current Modelview Matrix SwapBuffers(hDC); I created the dll and ran it inside a program made in a totaly different language and the window comes up for a bit of a second as it should be, then it seems it goes behind all the other windows and malfunctions... I do not want to have a loop in my dll code because then I can''t command it to do anything in my other program. 2) How do I get an already created window (in a seperate program) and turn it into an OpenGL window and interact with it? Does anyone know the answers? Thanks...

Share this post


Link to post
Share on other sites