Skip to main content
gamedev.net
🔒 Locked

Windows Forms

Started by S3DEV1 Jul 27, 2002 at 2:11 AM 6 replies 750+ views
Original Post
S3DEV1
S3DEV1
Where Can I get a Begginer''s OpenGL Tutorial using Windows Forms. I never learned MFC and I don''t have time to go back to that right now.
Dean Harding
Dean Harding
You don''t need a specific tutorial. Every form has a Handle property, which just returns the HWND of the underlying window. From there, just proceed as you would normally (i.e. find any other opengl tutorial for windows, and remeber that any mention of HWND is talking about this Handle property.)


codeka.com - Just click it.
Crispy
Crispy
quote:
Original post by S3DEV1
Where Can I get a Begginer''s OpenGL Tutorial using Windows Forms


What are Windows Form?

Check out this place, more spceifically the tutorials section which covers OpenGL in Windows pretty well, from the beginner''s to the advanced level.

Hope this helps,
Crispy

"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
Vampir
Vampir
in c# all windows are called Forms
Arild Fines
Arild Fines
csgl.sourceforge.net


"The churches used to win their arguments against atheism, agnosticism, and other burning issues by burning the ismists, which is fine proof that there is a devil but hardly evidence that there is a God."
Ben Lindsey and Wainwright Evans
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
Dean Harding
Dean Harding
I though he just wanted Windows Forms, not neccesarily C#... If you just want Windows Forms, my post is all you need. If you want OpenGL + C#, then go with csgl (though I''d wait until DX9 before doing 3D with C# or any other .NET language.)


codeka.com - Just click it.
Arild Fines
Arild Fines
CSGL isn''t restricted to C# only, despite the name. It should work with any .NET language.
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
Dean Harding
Dean Harding
Yeah, you''re right, it should. I just think it''s going to be overkill. Especially since VC++.NET has slightly better native interop than C# (in that you can mix native and .NET together). So it''d probably be easier to just use opengl directly...

Actually, I''m not sure how it''d work if you used VC++.NET, so maybe csgl is your only option. I haven''t worked in .NET much yet (well, I haven''t used many interop features at least)

Still, I''d wait until DX9. .NET interop probably isn''t going to be all that fast, and DX9 should be quite easy to use from a .NET language.


codeka.com - Just click it.

Topic Locked

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

Sign in to reply to this topic.