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.


Messages - bobbyport

Pages: [1]
1
General / Getting a sprite to draw a shape
« on: June 29, 2009, 11:39:56 pm »
Could you give me an example?

The sf::Drawable does not have a Render method.

2
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 &'

3
Graphics / SetImage
« on: June 28, 2009, 05:28:48 am »
Nevermind, I guess I must set manually with: sprite::SetSubRect()

4
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