Bubba-3D
0.9.0
Awesome game engine!
|
#include <GLSquare.h>
Public Member Functions | |
GLSquare (float posX, float posY, float width, float height, HUDGraphic *image) | |
float | getX () |
float | getY () |
float | getWidth () |
float | getHeight () |
HUDGraphic * | getGraphic () |
void | setCenterOffset (chag::float3 offset) |
void | setGraphic (HUDGraphic *graphic) |
void | updateGraphic () |
virtual void | render (ShaderProgram *shaderProgram, chag::float4x4 *projectionMatrix) |
![]() | |
virtual void | setRelativePosition (chag::float3 position) |
virtual void | setRotation (float rotation) |
virtual void | setScale (chag::float2 scale) |
Protected Member Functions | |
chag::float4x4 | getModelMatrix () |
void | init (float posX, float posY, float width, float height, HUDGraphic *image) |
void | fillVertexBuffer () |
void | bindTextureAndDraw (ShaderProgram *shaderProgram, chag::float4x4 *projectionMatrix) |
void | updateOriginalPosition () |
Protected Attributes | |
float | posX |
float | posY |
float | width |
float | height |
HUDGraphic * | graphic |
GLuint | vao |
ShaderProgram * | shaderProgram |
chag::float4x4 * | projectionMatrix |
chag::float3 | originalPosition |
![]() | |
chag::float3 | center = chag::make_vector(0.0f, 0.0f, 0.0f) |
float | rotation = 0.0f |
chag::float3 | originalPosition = chag::make_vector(0.0f, 0.0f, 0.0f) |
chag::float3 | scale = chag::make_vector(1.0f,1.0f,1.0f) |
Additional Inherited Members | |
![]() | |
chag::float3 | relativePosition = chag::make_vector(0.0f, 0.0f, 0.0f) |
Represents a low level gl square with a HUDGraphic as its graphical element
Definition at line 30 of file GLSquare.h.
|
virtual |
Sets the rotation center offset. The original center is the actual center of the drawn object.
Reimplemented from IHudDrawable.
Definition at line 120 of file GLSquare.cpp.