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

Author Topic: window.Display  (Read 2868 times)

0 Members and 1 Guest are viewing this topic.

Dolfik

  • Newbie
  • *
  • Posts: 5
    • View Profile
window.Display
« on: October 25, 2013, 10:26:33 pm »
I shared "window.Draw" in different classes, but now do not display sprites on screen (window.Display), if I write in main.cs "window.Display", it displays only those sprites that are registered in the main.cs, other sprites that are in other classes are not displayed. If I write "window.Display" in, for example, player.cs, it displays only the sprites are registered in player.cs (which is logical). How do I make all the sprites appear correctly?

Code: http://pastebin.com/ZPCxm08P

In simple words, do not display the player sprite.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: window.Display
« Reply #1 on: October 25, 2013, 10:38:47 pm »
Draw
Draw
...
Clear
Display

You will hardly see anything with such a code ;)
Laurent Gomila - SFML developer

Dolfik

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: window.Display
« Reply #2 on: October 26, 2013, 11:42:09 am »
Thank you. I will optimise code later, now i just learning.

 

anything