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

Author Topic: SFML Drawables  (Read 2824 times)

0 Members and 1 Guest are viewing this topic.

Lox

  • Newbie
  • *
  • Posts: 14
    • View Profile
SFML Drawables
« on: July 25, 2011, 05:10:18 am »
Hi, I'm trying to write my own implementation of an Animation class in C#.  I was wondering, when RenderWindow.Draw(drawable) gets called, what does it do?

Ideally, I am going to inherit from SFML.Graphics.Sprite.  Then, before it is drawn, it updates its image to the current frame.  How can I achieve this?

Thanks,

Kevin.

135

  • Newbie
  • *
  • Posts: 5
    • View Profile
SFML Drawables
« Reply #1 on: July 25, 2011, 05:52:44 pm »
I would use a image containing all the frames and subRect before each draw.

 

anything