Jump to content

  • Log In with Google      Sign In   
  • Create Account

Opening a Win32 window with SDL?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 zeybey1   Members   -  Reputation: 464

Like
0Likes
Like

Posted 02 June 2012 - 09:43 AM

So I've started on a simple top down game engine and am now starting work on a level editor. I'm trying to find some way to get user input so I can type out which files to load and save. I've learned a lot about SDL and c++, but still am not sure exactly how to accomplish this.

My question to you: Is it possible to use Win32 windows made with the .net framework and SDL in one application? So that I can open up win32 popup windows that say "Which file would you like to open", or use other things in the windows toolkit. It would be much easier then using the SDL's true type font library and programming all the buttons and things manually. I've heard you could directly use SDL for this sort of thing(?).

Sponsor:

#2 SiCrane   Moderators   -  Reputation: 9594

Like
0Likes
Like

Posted 02 June 2012 - 10:01 AM

Yes, it's possible to use standard Windows API functions and classes in a program that uses SDL. If, for example, you wanted to call GetOpenFileName(), you would just include the windows.h header and call the function.

#3 zeybey1   Members   -  Reputation: 464

Like
0Likes
Like

Posted 02 June 2012 - 09:51 PM

thanks! Had no idea that function existed.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS