SDL Gfx

Started by
1 comment, last by Miizuki 20 years, 1 month ago
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?
Advertisement
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
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]

This topic is closed to new replies.

Advertisement