Jump to content
  • Advertisement

Archived

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

Instruo

SDL and DirectX

This topic is 5279 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

I''ve got a curiousity kind of question. Is it possible to get Direct3d working using an SDL created window? I''ve been comtemplating trying some DX stuff besides just using OpenGL, but I absolutely hate dealing with win32 programming. One of the main reasons I went with SDL in the first place was because it wrapped window creation and manipulation up so neatly. Anyway, if anyone has any information about this one, I''d greatly appreciate it. Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Are there any other decent ways to handle windows besides SDL? Seriously, win32 is mad lame

Share this post


Link to post
Share on other sites
quote:
Original post by Instruo
Is it possible to get Direct3d working using an SDL created window?
No.

Share this post


Link to post
Share on other sites
quote:
Original post by Instruo
Are there any other decent ways to handle windows besides SDL?
GLUT, wxWindows, Qt, Gtk, Gtk+... None of those will provide a window for DirectX, though.

MFC (eww), WTL (unsupported, so... meh), a Win32 window wrapper of your own (or a borrowed one, like mine), or Windows Forms. These are all compatible with DirectX.

Share this post


Link to post
Share on other sites
Well, looks like I''ll be sticking with OpenGL for a while longer. Thanks for satisfying my curiousity.

Share this post


Link to post
Share on other sites
As Oluseyi pointed out, you can hook to directx via Windows Forms. It probably solves a lot of your complaints with win32 and may be appropriate for what you want; though you''re tied to .Net platform with it.

Share this post


Link to post
Share on other sites
You could use the DirectX app wizard to create one for you or just copy/paste the code from the SDK or one of many website tutorials.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!