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

Author Topic: Trouble with the coordinates and axis  (Read 1126 times)

0 Members and 1 Guest are viewing this topic.

HotPizzaBox

  • Newbie
  • *
  • Posts: 2
    • View Profile
Trouble with the coordinates and axis
« on: April 16, 2013, 12:53:16 pm »
Hi there

I've got this member variable in my class:
sf::RenderTexture m_map;

Now I am drawing 25 sprites in x direction and 25 sprites in y direction.

Then I draw the image on the window. But the picture seems to have inverted axis...

Can anyone help me?

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Trouble with the coordinates and axis
« Reply #1 on: April 16, 2013, 12:59:48 pm »
Are you sure you called .display() on that texture? If not, you need to add that or it'll be inverted.
Back to C++ gamedev with SFML in May 2023

HotPizzaBox

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Trouble with the coordinates and axis
« Reply #2 on: April 16, 2013, 02:05:06 pm »
Okay, now it's working. Thanks