#include <sprite.h>
◆ Sprite() [1/2]
◆ Sprite() [2/2]
Construct a Sprite.
- Parameters
-
tra | x, y, theta, scale Transform |
to | Region of texture to draw |
tex | Texture to draw |
alpha | Transparency modifier (alpha * texture alpha) |
◆ fromNormalised()
◆ getNormalisedTextureRegion()
◆ getScreenBoundingBox()
Get the ScreenBoundingBox of the Sprite.
- Parameters
-
camera | for projection to the screen. |
- Returns
- ScreenBoundingBox
◆ getWorldBoundingBox()
◆ toNormalised()
◆ colour
glm::vec4* jGL::Sprite::colour |
◆ texOffset
◆ texture
◆ transform
The documentation for this class was generated from the following file: