Sprite objects are 2D images orthographically rendered to the screen.
More...
Sprite objects are 2D images orthographically rendered to the screen.
◆ FlimSprite()
| FlimSprite::FlimSprite |
( |
const char * |
imageName | ) |
|
Constructor.
- Author
- Jack Campbell
- Date
- 3/13/2017
- Make a sprite with a key that was loaded by the image manager
- Parameters
-
| imageName | Name of the image. |
◆ GetAngle()
| float FlimSprite::GetAngle |
( |
| ) |
|
Gets the angle.
- Author
- Jack Campbell
- Date
- 3/13/2017
- Returns
- The angle.
◆ GetCenter()
| Vect & FlimSprite::GetCenter |
( |
| ) |
|
Gets the center.
- Author
- Jack Campbell
- Date
- 3/13/2017
- Returns
- The center.
◆ GetPos()
| Vect & FlimSprite::GetPos |
( |
| ) |
|
Gets the position.
- Author
- Jack Campbell
- Date
- 3/13/2017
- Returns
- The position.
◆ GetScale()
| Vect & FlimSprite::GetScale |
( |
| ) |
|
Gets the scale.
- Author
- Jack Campbell
- Date
- 3/13/2017
- Returns
- The scale.
◆ SetAngle()
| errcode FlimSprite::SetAngle |
( |
float |
angle | ) |
|
Sets an angle.
- Author
- Jack Campbell
- Date
- 3/13/2017
- Parameters
-
- Sets the angle in degrees of the sprite's rotation.
- Returns
- An errcode.
◆ SetCenter()
| errcode FlimSprite::SetCenter |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
Sets a center.
- Author
- Jack Campbell
- Date
- 3/13/2017
- Parameters
-
| x | The x coordinate. |
| y | The y coordinate. |
- Returns
- An errcode.
◆ SetPos()
| errcode FlimSprite::SetPos |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
Sets a position.
- Author
- Jack Campbell
- Date
- 3/13/2017
- Parameters
-
| x | The x coordinate. |
| y | The y coordinate. |
- Returns
- An errcode.
◆ SetScale() [1/3]
| errcode FlimSprite::SetScale |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
Sets a scale.
- Author
- Jack Campbell
- Date
- 3/13/2017
- Parameters
-
| x | The x coordinate. |
| y | The y coordinate. |
- Returns
- An errcode.
◆ SetScale() [2/3]
| errcode FlimSprite::SetScale |
( |
float |
factor | ) |
|
Sets a scale.
- Author
- Jack Campbell
- Date
- 3/13/2017
- Parameters
-
- Returns
- An errcode.
◆ SetScale() [3/3]
Sets a scale.
- Author
- Jack Campbell
- Date
- 3/13/2017
- Parameters
-
| factor | The factor. |
| s | The SpriteParam to process. |
- Returns
- An errcode.