• Advertisement

Archived

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

Sdl on a form

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

Has anyone used sdl on a form, i.e like a map editor. I want to create an editor and use forms (i.e mfc for you vc++ people). I can''t seem to figure out how to make sdl draw to a different handle instead of the one that it creates. Does this make any sense to anyone?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
first sentence, have no idea

second sentence, handle? SDL is a low-level cross-platform api, it is meant to take you away from the horrors of windows programming, SDL can create and draw to surfaces, please look that word up, it should give you everything you need

Share this post


Link to post
Share on other sites
Ok obviously I did not explain myself very well. A picture is worth a thousand words



This is something common I do with opengl and really want to do it with sdl. As you can see I have controls that are not graphic api based that control the graphic api.

I understand surfaces I just want to attach that surface to a specific handle, there is a correlation to handle with qt in linux but I'm not for sure what it is (think it's widgit_id or something) but I'm really only interested in windows at the moment.

[edited by - dizzarian on April 17, 2002 11:40:07 PM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I think you are in luck, if you go to the SDL libraries page, there is an additional library you can add on, I believe it is called ParaGui. Anyway, I haven''t used it myself but I think it is useful for making a SDL application with GUI features.

Share this post


Link to post
Share on other sites
JEDI-SDL ( http://www.sf.net/projects/jedi-sdl ) has an example of how you can do this using Delphi.


L8R,


Dominique.
http://www.DelphiGamer.com := for all your Object Pascal game development needs;

[edited by - savage on June 10, 2002 12:22:53 PM]

Share this post


Link to post
Share on other sites

  • Advertisement