Bubba-3D  0.9.0
Awesome game engine!
Public Member Functions | Public Attributes | Protected Attributes | List of all members
IHudDrawable Class Referenceabstract

#include <IHudDrawable.h>

Inheritance diagram for IHudDrawable:
GLSquare RelativeIHudDrawable TextObject

Public Member Functions

virtual void render (ShaderProgram *shaderProgram, chag::float4x4 *projectionMatrix)=0
 
virtual void setRelativePosition (chag::float3 position)
 
virtual void setCenterOffset (chag::float3 offset)
 
virtual void setRotation (float rotation)
 
virtual void setScale (chag::float2 scale)
 

Public Attributes

chag::float3 relativePosition = chag::make_vector(0.0f, 0.0f, 0.0f)
 

Protected Attributes

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)
 

Detailed Description

An interface for low-level objects used by HudRenderer to render the HUD. Mainly produced by different implementations of Layout

Definition at line 28 of file IHudDrawable.h.

Member Function Documentation

void IHudDrawable::setCenterOffset ( chag::float3  offset)
virtual

Sets the rotation center offset. The original center is the actual center of the drawn object.

Reimplemented in GLSquare.

Definition at line 33 of file IHudDrawable.cpp.

void IHudDrawable::setRelativePosition ( chag::float3  position)
virtual

Sets a position relative to the original position calculated by Layout implementations.

Definition at line 29 of file IHudDrawable.cpp.


The documentation for this class was generated from the following files: