28 #ifndef HPL_IMAGE_ENTITY_DATA_H 29 #define HPL_IMAGE_ENTITY_DATA_H 31 #include "hpl1/engine/graphics/GraphicsTypes.h" 32 #include "hpl1/engine/math/MathTypes.h" 33 #include "hpl1/engine/resources/ResourceBase.h" 34 #include "hpl1/engine/system/SystemTypes.h" 35 #include "common/stablemap.h" 41 #define kMaxImageEntityFrameWidth (1024) 80 bool CreateFromFile(
const tString &asFile,
tIntVec &avImageHandle);
83 tUIntVec *GetIndexVec() {
return &mvIdxVec; }
85 int GetFrameNum() {
return mlFrameNum; }
88 int GetAnimationNum() {
return (
int)m_mapAnimations.size(); }
89 tImageAnimationMap *GetAnimationMap() {
return &m_mapAnimations; }
91 const tString &GetType() {
return msType; }
92 const tString &GetSubType() {
return msSubType; }
93 const tString &GetDataName() {
return msDataName; }
95 cVector2f GetImageSize() {
return mvImageSize; }
97 cMesh2D *GetCollideMesh() {
return mpCollideMesh; }
99 bool IsCollidable() {
return mbCollidable; }
100 bool GetCollides() {
return mbCollides; }
101 bool GetCastShadows() {
return mbCastShadows; }
122 tImageFrameVec mvImageFrames;
123 tImageAnimationMap m_mapAnimations;
130 #endif // HPL_IMAGE_ENTITY_DATA_H
Definition: ResourceBase.h:36
Definition: ImageEntityData.h:57
cImageFrame * iterator
Definition: array.h:54
void destroy()
Definition: ImageEntityData.h:78
typename TreeT::BasicIterator iterator
Definition: stablemap.h:48
Definition: ImageEntityData.h:70
void unload()
Definition: ImageEntityData.h:77
bool reload()
Definition: ImageEntityData.h:76
Definition: Resources.h:160
Definition: tinyxml.h:864
Definition: ImageEntityData.h:48
Definition: Material.h:203
Definition: Graphics.h:46