SFML community forums

Help => Window => Topic started by: Regeta on April 25, 2013, 01:37:09 pm

Title: Function similar to SDL_SetClipRect ?
Post by: Regeta on April 25, 2013, 01:37:09 pm
With SDL, it was very simple to make the gameplay window smaller than the actual window itself. The result would be a black border (my cleared/fill color) around the actual rendered window.

It was as simple as typing,

SDL_SetClipRect(_mainWindow, g_ClipRect);

With g_ClipRect being a Rect(x,y,w,h). Sortof like a window within a window.

I was curious as to whether or not SFML has a similar function?
Title: Re: Function similar to SDL_SetClipRect ?
Post by: Laurent on April 25, 2013, 01:40:04 pm
https://github.com/SFML/SFML/issues/1
Title: Re: Function similar to SDL_SetClipRect ?
Post by: Regeta on May 25, 2013, 12:50:37 pm
Well, it is good to know it is Issue #1   8)