Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Function similar to SDL_SetClipRect ?  (Read 2063 times)

0 Members and 1 Guest are viewing this topic.

Regeta

  • Newbie
  • *
  • Posts: 6
    • View Profile
Function similar to SDL_SetClipRect ?
« 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?
« Last Edit: April 25, 2013, 01:39:42 pm by Regeta »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Laurent Gomila - SFML developer

Regeta

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Function similar to SDL_SetClipRect ?
« Reply #2 on: May 25, 2013, 12:50:37 pm »
Well, it is good to know it is Issue #1   8)