[SDL] How to get the SDL_Window

Thomas Younsi tyounsi at obvioustech.com
Thu Jul 18 06:59:00 PDT 2002


Thanks,

Is there a way to set a Strech Mode that automatically strech the Surface
when
blitting to the screen and clipped to its attach window

 SDL_ShowCursor(SDL_DISABLE);
 SDL_SysWMinfo info;
 SDL_VERSION(&info.version);
 int ret;
 ret = SDL_GetWMInfo(&info);
 int mask = SDL_NOFRAME| SDL_HWSURFACE | SDL_RESIZABLE;
 m_screen = SDL_SetVideoMode(w,
		  h,
		  m_video_bpp,
		  mask);


-----Original Message-----
From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of
Johannes Schmidt
Sent: Thursday, July 18, 2002 2:51 PM
To: sdl at libsdl.org
Subject: Re: [SDL] How to get the SDL_Window


On Thursday 18 July 2002 14:04, Thomas Younsi \(Obvious Tech\) wrote:
> Hi, it sounds crucial to me to be able
> to get the SDL_Window HANDLE in order
> to reparent the window, changes its attribute
> from the client, resize the window by programmation
> and so on.


Use SDL_GetWMInfo(SDL_SysWMinfo *info);

For details look into SDL_syswm.h


--
Johannes Schmidt

< http://libufo.sourceforge.net > Your widget set for OpenGL

_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl





More information about the SDL mailing list