Skip to main content
gamedev.net
🔒 Locked

2 Questions

Started by Drath 1 reply 250+ views
Original Post
Drath
Drath
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...
Drath
Drath
Can any one help?
Problem 1 is really holding me up.

Thanks...
Shag
Shag
Are you passing the current hDC to the dll?

That may well be the problem!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.