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

Author Topic: How to fill the window with a texture/sprite  (Read 1137 times)

0 Members and 1 Guest are viewing this topic.

TheDianamu

  • Newbie
  • *
  • Posts: 20
    • View Profile
How to fill the window with a texture/sprite
« on: September 20, 2013, 03:42:42 pm »
I'm trying to figure out a quick and simple way of filling the entire window or to a size say like

width of 200 sprites
height of 200 sprites

How would I go about setting the texture/sprite to fill that size? I have tried to use setRepeated, but that wasn't working.

Thanks in Advance

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: How to fill the window with a texture/sprite
« Reply #1 on: September 20, 2013, 04:20:12 pm »
Use setScale to scale up/down the sprite to the desired size.
Laurent Gomila - SFML developer