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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - bobbyport

Pages: [1]
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:
Quote

error C2594: 'argument' : ambiguous conversions from 'Node' to 'const sf::Drawable &'

2
Graphics / SetImage
« on: June 28, 2009, 04:49:18 am »
When I .SetImage()

It seems the sprite's width and height remain the same.... Must I manually change the dimensions to match the new image, or is there a way for automation?

Pages: [1]
anything