20 #include <linmath/float4x4.h> 21 #include <IHudDrawable.h> 47 virtual void render(
ShaderProgram* shaderProgram, chag::float4x4* projectionMatrix);
59 chag::float4x4* projectionMatrix;
60 chag::float3 originalPosition;
62 chag::float4x4 getModelMatrix();
64 void init(
float posX,
float posY,
float width,
float height,
HUDGraphic* image);
65 void fillVertexBuffer();
66 void bindTextureAndDraw(
ShaderProgram* shaderProgram, chag::float4x4* projectionMatrix);
67 void updateOriginalPosition();
Class for maintaining OpenGL shader programs.
void setCenterOffset(chag::float3 offset)