00001 /* Orx - Portable Game Engine 00002 * 00003 * Copyright (c) 2008-2011 Orx-Project 00004 * 00005 * This software is provided 'as-is', without any express or implied 00006 * warranty. In no event will the authors be held liable for any damages 00007 * arising from the use of this software. 00008 * 00009 * Permission is granted to anyone to use this software for any purpose, 00010 * including commercial applications, and to alter it and redistribute it 00011 * freely, subject to the following restrictions: 00012 * 00013 * 1. The origin of this software must not be misrepresented; you must not 00014 * claim that you wrote the original software. If you use this software 00015 * in a product, an acknowledgment in the product documentation would be 00016 * appreciated but is not required. 00017 * 00018 * 2. Altered source versions must be plainly marked as such, and must not be 00019 * misrepresented as being the original software. 00020 * 00021 * 3. This notice may not be removed or altered from any source 00022 * distribution. 00023 */ 00024 00047 #ifndef _orxANIMPOINTER_H_ 00048 #define _orxANIMPOINTER_H_ 00049 00050 00051 #include "orxInclude.h" 00052 00053 #include "anim/orxAnimSet.h" 00054 00055 00058 typedef struct __orxANIMPOINTER_t orxANIMPOINTER; 00059 00060 00063 extern orxDLLAPI void orxFASTCALL orxAnimPointer_Setup(); 00064 00068 extern orxDLLAPI orxSTATUS orxFASTCALL orxAnimPointer_Init(); 00069 00072 extern orxDLLAPI void orxFASTCALL orxAnimPointer_Exit(); 00073 00074 00080 extern orxDLLAPI orxANIMPOINTER *orxFASTCALL orxAnimPointer_Create(const orxSTRUCTURE *_pstOwner, orxANIMSET *_pstAnimSet); 00081 00087 extern orxDLLAPI orxANIMPOINTER *orxFASTCALL orxAnimPointer_CreateFromConfig(const orxSTRUCTURE *_pstOwner, const orxSTRING _zConfigID); 00088 00093 extern orxDLLAPI orxSTATUS orxFASTCALL orxAnimPointer_Delete(orxANIMPOINTER *_pstAnimPointer); 00094 00099 extern orxDLLAPI orxSTRUCTURE *orxFASTCALL orxAnimPointer_GetOwner(const orxANIMPOINTER *_pstAnimPointer); 00100 00105 extern orxDLLAPI orxANIMSET *orxFASTCALL orxAnimPointer_GetAnimSet(const orxANIMPOINTER *_pstAnimPointer); 00106 00107 00112 extern orxDLLAPI orxHANDLE orxFASTCALL orxAnimPointer_GetCurrentAnimHandle(const orxANIMPOINTER *_pstAnimPointer); 00113 00118 extern orxDLLAPI orxHANDLE orxFASTCALL orxAnimPointer_GetTargetAnimHandle(const orxANIMPOINTER *_pstAnimPointer); 00119 00124 extern orxDLLAPI orxU32 orxFASTCALL orxAnimPointer_GetCurrentAnim(const orxANIMPOINTER *_pstAnimPointer); 00125 00130 extern orxDLLAPI orxU32 orxFASTCALL orxAnimPointer_GetTargetAnim(const orxANIMPOINTER *_pstAnimPointer); 00131 00136 extern orxDLLAPI orxSTRUCTURE *orxFASTCALL orxAnimPointer_GetCurrentAnimData(const orxANIMPOINTER *_pstAnimPointer); 00137 00142 extern orxDLLAPI orxFLOAT orxFASTCALL orxAnimPointer_GetCurrentTime(const orxANIMPOINTER *_pstAnimPointer); 00143 00148 extern orxDLLAPI orxFLOAT orxFASTCALL orxAnimPointer_GetFrequency(const orxANIMPOINTER *_pstAnimPointer); 00149 00155 extern orxDLLAPI orxSTATUS orxFASTCALL orxAnimPointer_SetCurrentAnimHandle(orxANIMPOINTER *_pstAnimPointer, orxHANDLE _hAnimHandle); 00156 00162 extern orxDLLAPI orxSTATUS orxFASTCALL orxAnimPointer_SetTargetAnimHandle(orxANIMPOINTER *_pstAnimPointer, orxHANDLE _hAnimHandle); 00163 00169 extern orxDLLAPI orxSTATUS orxFASTCALL orxAnimPointer_SetCurrentAnim(orxANIMPOINTER *_pstAnimPointer, orxU32 _u32AnimID); 00170 00176 extern orxDLLAPI orxSTATUS orxFASTCALL orxAnimPointer_SetTargetAnim(orxANIMPOINTER *_pstAnimPointer, orxU32 _u32AnimID); 00177 00183 extern orxDLLAPI orxSTATUS orxFASTCALL orxAnimPointer_SetTime(orxANIMPOINTER *_pstAnimPointer, orxFLOAT _fTime); 00184 00190 extern orxDLLAPI orxSTATUS orxFASTCALL orxAnimPointer_SetFrequency(orxANIMPOINTER *_pstAnimPointer, orxFLOAT _fFrequency); 00191 00197 extern orxDLLAPI orxSTATUS orxFASTCALL orxAnimPointer_Pause(orxANIMPOINTER *_pstAnimPointer, orxBOOL _bPause); 00198 00199 #endif /* _orxANIMPOINTER_H_ */ 00200
1.5.6