SFML community forums
Bindings - other languages => DotNet => Topic started by: Lox 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.
-
I would use a image containing all the frames and subRect before each draw.