Sign in to follow this  
RealmRPGer

Embed an AllegroGL window?

Recommended Posts

RealmRPGer    160
Is there any way to embed an AllegroGL window within another window (specifically a Visual Studio form)? Or will I have to create my own openGL window? If so, would I still be able to use the AllegroGL functions on the openGL window?

Share this post


Link to post
Share on other sites
RealmRPGer    160
Hey, thanks!

But now I'm running into a little problem. If I give AllegroGL the HWND of the form, it removes the ability to resize the window. And if I try to give it the HWND of a form control (in this case, a panel), it seems to turn the panel into a window that's constrained within the form. Interesting, but not what I want.

So is there any way to imbed an OpenGL frame within a form's control (basically, allow for resizing of the form)?

Share this post


Link to post
Share on other sites
konForce    592
Allegro does not support window resizing, as it grew up on DOS. I would guess that you cannot do what you want with Allegro GL, but you could try asking at allegro.cc. The next version (4.3/4.4) of Allegro will most likely support this, but you're not going to want to wait around for that.

Share this post


Link to post
Share on other sites
RealmRPGer    160
Hrmmm, well, I manually created an OpenGL frame within the control, but it looks like I can't use the AllegroGL textures with it. I'm guessing the textures are something special that's only implimented in allegro_gl_flip()?

Well, the not being able to resize the allegro window isn't TOO bad, but the fact that it uses the entire form as the rendering window is turning out to be a hassle (mostly because of the continually changing offsets due to the other form controls)...

heh...I'm really beginning to dislike allegro now...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this