2 * ***** BEGIN GPL LICENSE BLOCK *****
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
19 * All rights reserved.
21 * The Original Code is: all of this file.
23 * Contributor(s): none yet.
25 * ***** END GPL LICENSE BLOCK *****
28 /** \file KX_PythonInit.h
32 #ifndef __KX_PYTHON_INIT
33 #define __KX_PYTHON_INIT
35 #include "KX_Python.h"
36 #include "STR_String.h"
41 } TPythonSecurityLevel;
43 extern bool gUseVisibilityTemp;
46 PyObject* initGameLogic(class KX_KetsjiEngine *engine, class KX_Scene* ketsjiscene);
47 PyObject* initGameKeys();
48 PyObject* initRasterizer(class RAS_IRasterizer* rasty,class RAS_ICanvas* canvas);
49 PyObject* initGamePlayerPythonScripting(const STR_String& progname, TPythonSecurityLevel level, struct Main *maggie, int argc, char** argv);
50 PyObject* initVideoTexture(void);
51 void exitGamePlayerPythonScripting();
52 PyObject* initGamePythonScripting(const STR_String& progname, TPythonSecurityLevel level, struct Main *maggie);
53 void exitGamePythonScripting();
55 void setupGamePython(KX_KetsjiEngine* ketsjiengine, KX_Scene* startscene, Main *blenderdata, PyObject *pyGlobalDict, PyObject **gameLogic, PyObject **gameLogic_keys, int argc, char** argv);
57 void setGamePythonPath(const char *path);
58 void resetGamePythonPath();
59 void pathGamePythonConfig( char *path );
60 int saveGamePythonConfig( char **marshal_buffer);
61 int loadGamePythonConfig(char *marshal_buffer, int marshal_length);
64 class KX_KetsjiEngine;
67 void KX_SetActiveScene(class KX_Scene* scene);
68 class KX_Scene* KX_GetActiveScene();
69 class KX_KetsjiEngine* KX_GetActiveEngine();
70 #include "MT_Vector3.h"
72 void KX_RasterizerDrawDebugLine(const MT_Vector3& from,const MT_Vector3& to,const MT_Vector3& color);
73 void KX_RasterizerDrawDebugCircle(const MT_Vector3& center, const MT_Scalar radius, const MT_Vector3& color,
74 const MT_Vector3& normal, int nsector);
77 #endif //__KX_PYTHON_INIT