1
General / Getting a sprite to draw a shape
« on: June 29, 2009, 02:32:30 am »
This is what I've got right now: http://codepad.org/udmkNHX9
I would like the node object to be responsible for drawing its sprite image as well as its origin (using a circle).
I could easily have it draw multiple sprites (one for its actual image the other for its origin) but I would prefer using a shape.
When I try getting the node class to inherit from sf::Sprite and sf::Shape I receive the following error:
I would like the node object to be responsible for drawing its sprite image as well as its origin (using a circle).
I could easily have it draw multiple sprites (one for its actual image the other for its origin) but I would prefer using a shape.
When I try getting the node class to inherit from sf::Sprite and sf::Shape I receive the following error:
Quote
error C2594: 'argument' : ambiguous conversions from 'Node' to 'const sf::Drawable &'