Render the GameObject on screen using a BMP image file.
More...
|
| this (size_t owner, SDL_Renderer *renderer, ComponentTransform transform, ComponentAnimation animation) |
| Setup the renderer.
|
|
override void | Update () |
| Update the animation to go the next frame.
|
|
override void | Render (SDL_Renderer *renderer, SDL_Rect *camera) |
| Render the sprite on screen.
|
|
Render the GameObject on screen using a BMP image file.
The render location is defined by ComponentTransform. The frame to render in an animation is defined by ComponentAnimation.
- See also
- ComponentTransform
-
ComponentAnimation
◆ this()
Setup the renderer.
- Parameters
-
◆ Render()
override void ComponentRender::Render |
( |
SDL_Renderer * | renderer, |
|
|
SDL_Rect * | camera ) |
|
inline |
Render the sprite on screen.
- Parameters
-
renderer | the SDL renderer to use. |
camera | the SDL_Rect corresponding to the camera position and size. |
Implements IComponent.
◆ Update()
override void ComponentRender::Update |
( |
| ) |
|
|
inline |
Update the animation to go the next frame.
Implements IComponent.
The documentation for this class was generated from the following file:
- Engine/source/component.d