28#ifndef HPL_GUI_GFX_ELEMENT_H
29#define HPL_GUI_GFX_ELEMENT_H
31#include "hpl1/engine/gui/GuiTypes.h"
41#define kMaxGuiTextures (4)
45enum eGuiGfxAnimationType {
46 eGuiGfxAnimationType_Loop,
47 eGuiGfxAnimationType_StopAtEnd,
48 eGuiGfxAnimationType_Oscillate,
49 eGuiGfxAnimationType_Random,
50 eGuiGfxAnimationType_LastEnum
59 void AddFrame(
int alNum);
60 void SetType(eGuiGfxAnimationType aType);
61 void SetFrameLength(
float afLength);
67 eGuiGfxAnimationType mType;
80 void Update(
float afTimeStep);
83 void AddTexture(
iTexture *apTexture);
87 void SetOffset(
const cVector3f &avOffset) { mvOffset = avOffset; }
88 const cVector3f &GetOffset()
const {
return mvOffset; }
90 void SetActiveSize(
const cVector2f &avSize) { mvActiveSize = avSize; }
91 const cVector2f &GetActiveSize() {
return mvActiveSize; }
94 void PlayAnimation(
int alNum);
96 void SetAnimationTime(
float afTime);
98 void SetAnimationPaused(
bool abX) { mbAnimationPaused = abX; }
99 bool GSetAnimationPaused() {
return mbAnimationPaused; }
103 void SetColor(
const cColor &aColor);
120 iTexture *mvTextures[kMaxGuiTextures];
126 int mlCurrentAnimation;
127 float mfCurrentFrame;
130 bool mbAnimationPaused;
Definition: GuiGfxElement.h:53
Definition: GuiGfxElement.h:72
Definition: ResourceImage.h:43
Definition: GuiMaterial.h:36