Game Develop C++ Platform: RuntimeSceneTools.h Source File

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
RuntimeSceneTools.h
1 #ifndef RUNTIMESCENETOOLS_H
2 #define RUNTIMESCENETOOLS_H
3
4 #include <string>
5 #include <vector>
6 #include <map>
7 class RuntimeScene;
8 namespace gd { class Variable; }
9 class RuntimeObject;
10
14 bool GD_API LayerVisible( RuntimeScene & scene, const std::string & layer );
15
19 void GD_API ShowLayer( RuntimeScene & scene, const std::string & layer );
20
24 void GD_API HideLayer( RuntimeScene & scene, const std::string & layer );
25
29 void GD_API StopGame( RuntimeScene & scene );
30
34 void GD_API ChangeScene( RuntimeScene & scene, std::string newSceneName );
35
39 bool GD_API SceneJustBegins(RuntimeScene & scene );
40
44 void GD_API MoveObjects( RuntimeScene & scene );
45
49 void GD_API DisableInputWhenFocusIsLost( RuntimeScene & scene, bool disable );
50
54 void GD_API CreateObjectOnScene(RuntimeScene & scene, std::map <std::string, std::vector<RuntimeObject*> *> pickedObjectLists, float positionX, float positionY, const std::string & layer);
55
59 void GD_API CreateObjectFromGroupOnScene(RuntimeScene & scene, std::map <std::string, std::vector<RuntimeObject*> *> pickedObjectLists, const std::string & objectWanted, float positionX, float positionY, const std::string & layer);
60
66 bool GD_API PickAllObjects(RuntimeScene & scene, std::map <std::string, std::vector<RuntimeObject*> *> pickedObjectLists);
67
73 bool GD_API PickRandomObject(RuntimeScene & scene, std::map <std::string, std::vector<RuntimeObject*> *> pickedObjectLists);
74
78 void GD_API ChangeSceneBackground( RuntimeScene & scene, std::string newColor );
79
84 gd::Variable & GD_API GetSceneVariable(RuntimeScene & scene, const std::string & variableName);
85
90 gd::Variable & GD_API GetGlobalVariable(RuntimeScene & scene, const std::string & variableName);
91
96 gd::Variable & GD_API IndexGetSceneVariable(RuntimeScene & scene, unsigned int variableIndex);
97
102 gd::Variable & GD_API IndexGetGlobalVariable(RuntimeScene & scene, unsigned int variableIndex);
103
108 bool GD_API SceneVariableDefined(RuntimeScene & scene, const std::string & variableName);
109
114 bool GD_API GlobalVariableDefined(RuntimeScene & scene, const std::string & variableName);
115
120 double GD_API GetSceneVariableValue( const RuntimeScene & scene, const std::string & variableName);
121
126 const std::string & GD_API GetSceneVariableString( const RuntimeScene & scene, const std::string & variableName);
127
132 double GD_API GetGlobalVariableValue( const RuntimeScene & scene, const std::string & variableName);
133
138 const std::string & GD_API GetGlobalVariableString( const RuntimeScene & scene, const std::string & variableName);
139
144 double GD_API IndexGetSceneVariableValue( const RuntimeScene & scene, unsigned int variableIndex);
145
150 const std::string & GD_API IndexGetSceneVariableString( const RuntimeScene & scene, unsigned int variableIndex);
151
156 double GD_API IndexGetGlobalVariableValue( const RuntimeScene & scene, unsigned int variableIndex);
157
162 const std::string & GD_API IndexGetGlobalVariableString( const RuntimeScene & scene, unsigned int variableIndex);
163
167 void GD_API SetFullScreen(RuntimeScene & scene, bool fullscreen);
168
172 void GD_API SetWindowSize(RuntimeScene & scene, int width, int height, bool useTheNewSizeForCameraDefaultSize);
173
177 void GD_API SetWindowIcon(RuntimeScene & scene, const std::string & imageName);
178
182 void GD_API SetWindowTitle(RuntimeScene & scene, const std::string & newName);
183
187 const std::string & GD_API GetWindowTitle(RuntimeScene & scene);
188
192 unsigned int GD_API GetSceneWindowWidth(RuntimeScene & scene);
193
197 unsigned int GD_API GetSceneWindowHeight(RuntimeScene & scene);
198
202 unsigned int GD_API GetScreenWidth();
203
207 unsigned int GD_API GetScreenHeight();
208
212 unsigned int GD_API GetScreenColorDepth();
213
217 void GD_API DisplayLegacyTextOnScene( RuntimeScene & scene, const std::string & str, float x, float y, const std::string & color, float characterSize, const std::string & fontName, const std::string & layer);
218
219 #if defined(GD_IDE_ONLY)
220
228 bool GD_API WarnAboutInfiniteLoop( RuntimeScene & scene );
229
230 #endif
231
232 #endif // RUNTIMESCENETOOLS_H
233