orx  stable
Portable Game Engine
orxFrame.h
Go to the documentation of this file.
1 /* Orx - Portable Game Engine
2  *
3  * Copyright (c) 2008-2017 Orx-Project
4  *
5  * This software is provided 'as-is', without any express or implied
6  * warranty. In no event will the authors be held liable for any damages
7  * arising from the use of this software.
8  *
9  * Permission is granted to anyone to use this software for any purpose,
10  * including commercial applications, and to alter it and redistribute it
11  * freely, subject to the following restrictions:
12  *
13  * 1. The origin of this software must not be misrepresented; you must not
14  * claim that you wrote the original software. If you use this software
15  * in a product, an acknowledgment in the product documentation would be
16  * appreciated but is not required.
17  *
18  * 2. Altered source versions must be plainly marked as such, and must not be
19  * misrepresented as being the original software.
20  *
21  * 3. This notice may not be removed or altered from any source
22  * distribution.
23  */
24 
51 #ifndef _orxFRAME_H_
52 #define _orxFRAME_H_
53 
54 #include "orxInclude.h"
55 
56 #include "math/orxVector.h"
57 
58 
61 #define orxFRAME_KU32_FLAG_NONE 0x00000000
63 #define orxFRAME_KU32_FLAG_SCROLL_X 0x00000001
64 #define orxFRAME_KU32_FLAG_SCROLL_Y 0x00000002
65 #define orxFRAME_KU32_MASK_SCROLL_BOTH 0x00000003
67 #define orxFRAME_KU32_FLAG_DEPTH_SCALE 0x00000004
69 #define orxFRAME_KU32_FLAG_FLIP_X 0x00000010
70 #define orxFRAME_KU32_FLAG_FLIP_Y 0x00000020
71 #define orxFRAME_KU32_MASK_FLIP_BOTH 0x00000030
73 #define orxFRAME_KU32_MASK_USER_ALL 0x000000FF
78 typedef enum __orxFRAME_SPACE_t
79 {
82 
84 
85  orxFRAME_SPACE_NONE = orxENUM_NONE
86 
88 
89 
92 typedef struct __orxFRAME_t orxFRAME;
93 
94 
97 extern orxDLLAPI void orxFASTCALL orxFrame_Setup();
98 
102 extern orxDLLAPI orxSTATUS orxFASTCALL orxFrame_Init();
103 
106 extern orxDLLAPI void orxFASTCALL orxFrame_Exit();
107 
108 
113 extern orxDLLAPI orxFRAME *orxFASTCALL orxFrame_Create(orxU32 _u32Flags);
114 
119 extern orxDLLAPI orxSTATUS orxFASTCALL orxFrame_Delete(orxFRAME *_pstFrame);
120 
121 
126 extern orxDLLAPI void orxFASTCALL orxFrame_SetParent(orxFRAME *_pstFrame, orxFRAME * _pstParent);
127 
132 extern orxDLLAPI orxFRAME *orxFASTCALL orxFrame_GetParent(const orxFRAME *_pstFrame);
133 
138 extern orxDLLAPI orxFRAME *orxFASTCALL orxFrame_GetChild(const orxFRAME *_pstFrame);
139 
144 extern orxDLLAPI orxFRAME *orxFASTCALL orxFrame_GetSibling(const orxFRAME *_pstFrame);
145 
150 extern orxDLLAPI orxBOOL orxFASTCALL orxFrame_IsRootChild(const orxFRAME *_pstFrame);
151 
152 
158 extern orxDLLAPI void orxFASTCALL orxFrame_SetPosition(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, const orxVECTOR *_pvPos);
159 
165 extern orxDLLAPI void orxFASTCALL orxFrame_SetRotation(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxFLOAT _fRotation);
166 
172 extern orxDLLAPI void orxFASTCALL orxFrame_SetScale(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, const orxVECTOR *_pvScale);
173 
174 
181 extern orxDLLAPI orxVECTOR *orxFASTCALL orxFrame_GetPosition(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxVECTOR *_pvPos);
182 
188 extern orxDLLAPI orxFLOAT orxFASTCALL orxFrame_GetRotation(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace);
189 
196 extern orxDLLAPI orxVECTOR *orxFASTCALL orxFrame_GetScale(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxVECTOR *_pvScale);
197 
198 
205 extern orxDLLAPI orxVECTOR *orxFASTCALL orxFrame_TransformPosition(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxVECTOR *_pvPos);
206 
213 extern orxDLLAPI orxFLOAT orxFASTCALL orxFrame_TransformRotation(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxFLOAT _fRotation);
214 
221 extern orxDLLAPI orxVECTOR *orxFASTCALL orxFrame_TransformScale(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxVECTOR *_pvScale);
222 
223 #endif /* _orxFRAME_H_ */
224 
orxDLLAPI orxSTATUS orxFASTCALL orxFrame_Delete(orxFRAME *_pstFrame)
orxDLLAPI void orxFASTCALL orxFrame_SetPosition(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, const orxVECTOR *_pvPos)
orxDLLAPI orxVECTOR *orxFASTCALL orxFrame_TransformPosition(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxVECTOR *_pvPos)
orxDLLAPI void orxFASTCALL orxFrame_SetParent(orxFRAME *_pstFrame, orxFRAME *_pstParent)
struct __orxFRAME_t orxFRAME
Definition: orxFrame.h:92
orxDLLAPI orxFLOAT orxFASTCALL orxFrame_GetRotation(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace)
orxDLLAPI orxFLOAT orxFASTCALL orxFrame_TransformRotation(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxFLOAT _fRotation)
orxDLLAPI orxFRAME *orxFASTCALL orxFrame_GetSibling(const orxFRAME *_pstFrame)
orxDLLAPI void orxFASTCALL orxFrame_Exit()
orxDLLAPI orxSTATUS orxFASTCALL orxFrame_Init()
orxDLLAPI orxVECTOR *orxFASTCALL orxFrame_TransformScale(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxVECTOR *_pvScale)
orxDLLAPI orxVECTOR *orxFASTCALL orxFrame_GetPosition(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxVECTOR *_pvPos)
orxDLLAPI orxFRAME *orxFASTCALL orxFrame_Create(orxU32 _u32Flags)
orxSTATUS
Definition: orxType.h:243
orxDLLAPI void orxFASTCALL orxFrame_SetRotation(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxFLOAT _fRotation)
orxDLLAPI orxFRAME *orxFASTCALL orxFrame_GetParent(const orxFRAME *_pstFrame)
orxDLLAPI void orxFASTCALL orxFrame_SetScale(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, const orxVECTOR *_pvScale)
orxDLLAPI void orxFASTCALL orxFrame_Setup()
#define orxDLLAPI
Definition: orxDecl.h:387
orxDLLAPI orxFRAME *orxFASTCALL orxFrame_GetChild(const orxFRAME *_pstFrame)
orxDLLAPI orxVECTOR *orxFASTCALL orxFrame_GetScale(orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxVECTOR *_pvScale)
orxDLLAPI orxBOOL orxFASTCALL orxFrame_IsRootChild(const orxFRAME *_pstFrame)
orxFRAME_SPACE
Definition: orxFrame.h:78

Generated for orx by doxygen 1.5.6