summaryrefslogtreecommitdiffstats
path: root/MatchBloxEngine/MatchBloxEngine/C_Hand.h
diff options
context:
space:
mode:
Diffstat (limited to 'MatchBloxEngine/MatchBloxEngine/C_Hand.h')
-rw-r--r--MatchBloxEngine/MatchBloxEngine/C_Hand.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/MatchBloxEngine/MatchBloxEngine/C_Hand.h b/MatchBloxEngine/MatchBloxEngine/C_Hand.h
index 706cf5f..3ada63d 100644
--- a/MatchBloxEngine/MatchBloxEngine/C_Hand.h
+++ b/MatchBloxEngine/MatchBloxEngine/C_Hand.h
@@ -3,24 +3,25 @@
#define C_HAND_HEADER_FILE
#include "C_3DObject.h"
+#include "typedefs.h"
typedef enum HandAnimState
{
- IDLE = 0,
- GRAB = 1,
- RELEASE = 2,
-// COLLIDE = 3
+ HS_IDLE = 0,
+ HS_GRAB = 1,
+ HS_RELEASE = 2,
+ HS_COLLIDE = 3
};
-unsigned int g_HandAnimDurations[3] = {0, 100, 100};
class C_Hand : public C_3DObject
{
public:
- C_Hand(char* f_strFileName);
+ C_Hand(const char* f_strFileName, GLuint f_uiTex,
+ MatProps_t f_Mat);
~C_Hand();
- void Draw(unsigned int f_iElapsedTime);
+ void Render(unsigned int f_iElapsedTime);
inline void SetState(HandAnimState f_State, unsigned int f_uiElapsedTime) { m_CurrState = f_State; m_uiAnimStart = f_uiElapsedTime; }
private:
@@ -28,4 +29,5 @@ private:
unsigned int m_uiAnimStart;
};
-#endif //C_HAND_HEADER_FILE \ No newline at end of file
+#endif //C_HAND_HEADER_FILE
+