Jump to content
  • Advertisement
Sign in to follow this  
RealmRPGer

Embed an AllegroGL window?

This topic is 4626 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!