SFML community forums

Bindings - other languages => DotNet => Topic started by: gabinir on April 09, 2011, 04:45:11 pm

Title: Drawable being abstract, how do i use it?
Post by: gabinir on April 09, 2011, 04:45:11 pm
In the original c++ version of sfml, i used a class called anim that inherit from Drawable.

Now it seems as if i have to implement abstract methods (as Drawable is abstract) such as:
   public abstract Vector2 TransformToGlobal(Vector2 point);
        public abstract Vector2 TransformToLocal(Vector2 point);

How do i use Drawable now, without having to implement those methods?
Title: Drawable being abstract, how do i use it?
Post by: Laurent on April 09, 2011, 06:07:24 pm
The drawable class is not meant to be derived in SFML.Net. Every function is abstract, I must simulate the original API's polymorphism that was lost in CSFML.
Title: Drawable being abstract, how do i use it?
Post by: gabinir on April 09, 2011, 06:59:27 pm
So how do i draw animations?
Title: Drawable being abstract, how do i use it?
Post by: Laurent on April 09, 2011, 07:03:18 pm
Do it without inheriting from Drawable ;)