Archived

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

Kajima

OpenGL OpenGL window with windows forms designer

Recommended Posts

Has anyone made an openGL window with windows forms desinger yet? (or even just hand coding one with windows forms). Since windows is moving toward .net anyway i''d rather not waste my time learning the old way.

Share this post


Link to post
Share on other sites
maybe im missing your problem. an opengl window should be just a window like the rest. besides that, how you create your window seems pretty unimportant and "learning the old way" is making it sound like a complicated thing that needs weeks to change.
btw. you could as well say: as windows is going longhorn and tcpa, dont waste time with platform dependent development.

Share this post


Link to post
Share on other sites
Longhorn is exacty why I don''t wanna waste my time with the old way. Thing is i''ve just started learning openGL and kinda don''t wanna take all that time to learn somthing that is going out anyway. (and a pain in the ass).

Share this post


Link to post
Share on other sites
its hardly ''learning''... write the code once, put it somewhere safe and forget about it.
If you''re doing full screen and dont want to bother with it then god bless SDL.
As for windows forms I guess thats for non-full screen stuff, so shove a control on teh form and then from code grab its hDC somehow and turn it into an OpenGL context.
Chances are there is no ''automatic'' way to do it, something about MS and not caring about OpenGL or something... *shrugs*

Share this post


Link to post
Share on other sites
Whats "windows forms"? a new way to handle windows and dialogs under .net or longhorn?

Shouldnt be too hard to get a hDC and do some rendering from there...

Salsa cooked it, your eyes eat it!
[Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD][My DevDiary]
[Yann L.][Enginuity] [Penny Arcade] [MSDN][VS RoadMap][Humus][BSPs][UGP][NeHe]
                          Prozak - The GameDever formally known as pentium3id

Share this post


Link to post
Share on other sites
check out http://www.fltk.org/ , learn how to use the fluid form designer, and read the documentation on how to create an opengl drawing area within the forms. It''s easy, it really is.

Share this post


Link to post
Share on other sites