#include <GameObject.hpp>
|
std::string | mTag = "" |
| the name of this object, should be unique to other objects unless grouping is desired. More...
|
|
bool | alive = true |
| whether this object is alive or not. More...
|
|
Basic renderable GameObject, thin extension of GameObject to handle rendering logic for users.
GUIElement::GUIElement |
( |
const std::shared_ptr< TextureWrapper > & |
texture | ) |
|
Simplest constructure, nameless Element with a texture
- Parameters
-
texture | how to render the element |
- Todo:
- implement different forms of rendering strategies
GUIElement::GUIElement |
( |
const std::shared_ptr< TextureWrapper > & |
texture, |
|
|
const std::string & |
tag |
|
) |
| |
named gui element
- Parameters
-
tag | the name, should be unique unless grouping is desired. |
texture | texture |
More specific constructor that specifies a starting position.
- Parameters
-
GUIElement::GUIElement |
( |
const std::shared_ptr< TextureWrapper > & |
texture, |
|
|
const Vector3D & |
startPosition, |
|
|
const std::string & |
tag |
|
) |
| |
create a named element that has an initial position.
- Parameters
-
GUIElement::GUIElement |
( |
| ) |
|
|
default |
void GUIElement::Render |
( |
SDL_Renderer * |
renderer | ) |
|
Render this element to the given renderer.
Solely handles rectangles.
- Parameters
-
renderer | the renderer to target. |
SDL_Rect GUIElement::mDestination |
|
protected |
rectangle representing the bounding box
The documentation for this class was generated from the following files:
- D:/Ryan_Temp/GithubProjects/monorepo-RyanRio/Assignment1_Breakout/Game/include/GameObject.hpp
- D:/Ryan_Temp/GithubProjects/monorepo-RyanRio/Assignment1_Breakout/Game/src/GameObject.cpp