moving SDL video surface

Posted by runrunraygun on Stack Overflow See other posts from Stack Overflow or by runrunraygun
Published on 2010-04-11T20:54:24Z Indexed on 2010/04/11 21:53 UTC
Read the original article Hit count: 432

Filed under:
|
|
|
|

Does anyone know how to move my SDL.net video surface around the screen programtically?

Surface videoContext = Video.SetVideoMode(1024, 768, 32, false, false, false, true, true);

var a = System.Windows.Forms.Control.FromHandle(Video.WindowHandle);
var b = System.Windows.Forms.NativeWindow.FromHandle(Video.WindowHandle);

I can't find any properties in Surface or Video which do the job, and FromHandle is returning Null.

The window is initializing falling off the bottom of the screen. alt text

Any ideas?

© Stack Overflow or respective owner

Related posts about sdl

Related posts about sdl.net