Archived

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

SDL Gfx

This topic is 5011 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 was wondering if there''s any way of getting sdl to draw upon an existing window? SDL''s own window is bad, and doesn''t even update itself properly. Moreover, since I''m using DirectInput api, I want to get the window''s handle and pass it to dinput. But since they''re not intialized at the same time (dinput before) this is a problem... And is there a way to tell SDL *NOT* to show its window when setting window mode instead of hiding it directly after using windows api?

Share this post


Link to post
Share on other sites
Hi.

It is possible to draw with SDL on an existing window.
I have done this with SDL and Qt under Linux. For other
systems i don''t know how to do this.

Anyway, I don''t understand what are you trying to do.
Maybe SDL isn''t updating it''s window properly, anyway
you can tell it do to so, e.g. by sending a custom event and then update the screen upon the event.

Best would be if you explain what are you trying to do. Why are you trying to hide the SDL window, and so on.

Regards
paines

Share this post


Link to post
Share on other sites
First off, I want SDL to draw upon an existing window, namely my main window.
And secondly, it isn't updating properly as in, I cannot move the window for one, and if I deselect the window and hide it with a window, I cannot access it again. Totally weird. That's another reason I want it to draw upon an existing window.

[edited by - Miizuki on March 25, 2004 2:36:36 AM]

Share this post


Link to post
Share on other sites