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

Author Topic: RenderTarget equivalent?  (Read 2022 times)

0 Members and 1 Guest are viewing this topic.

NinjaFighter

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • http://www.sebagames.wordpress.com
RenderTarget equivalent?
« on: April 01, 2011, 09:54:52 am »
I want to render my game in a small surface, and next, scaling it to fullscreen ... there's a way to render my game in a another small surface? (not the window surface)

I try using the RenderWindow, but the surface was scaled relative to window size, so this is a bit annoying.  :?

Any suggestion?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
RenderTarget equivalent?
« Reply #1 on: April 01, 2011, 10:21:27 am »
With SFML 2 you can do this very easily with sf::RenderImage.
Laurent Gomila - SFML developer

NinjaFighter

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • http://www.sebagames.wordpress.com
RenderTarget equivalent?
« Reply #2 on: April 01, 2011, 06:08:26 pm »
Wonderful! This feature rocks! I'm on it now! :)

Congrats for this framework, is very comfortable to work on it.