Source

pygamekit / gamekit.pyx


include "prerequisites.pxi"
include "event.pxi"
include "gameobject.pxi"
include "scene.pxi"
include "engine.pxi"
include "blendfile.pxi"
include "input.pxi"
print     GK_PLATFORM,  GK_PLATFORM_ANDROID,    GK_PLATFORM_LINUX
import sys

#gkLogger_enable(to_stdstring("AppCppDemo.log"), GK_CPP_VERBOSE_LOG)

cdef gkUserDefs *prefs = new gkUserDefs()
#prefs.rendersystem = OGRE_RS_GL
prefs.winsize.x = 800
prefs.winsize.y = 800
#prefs.fullscreen = True
prefs.wintitle = to_stdstring("OgreKit Python Testbed")
#prefs.verbose = GK_CPP_VERBOSE_LOG
#prefs.fsaa = True
#prefs.debugPhysics = True
prefs.debugFps = True
prefs.grabInput = False
#prefs.useBulletDbvt = False
prefs.enableshadows = 0
prefs.shadowtechnique = to_stdstring("textureadditive")

PLATFORM = ""
if GK_PLATFORM == GK_PLATFORM_WIN32:
    PLATFORM = "WIN32"
elif GK_PLATFORM == GK_PLATFORM_APPLE:
    PLATFORM = "APPLE"
elif GK_PLATFORM == GK_PLATFORM_APPLE_IOS:
    PLATFORM = "APPLE_IOS"
elif GK_PLATFORM == GK_PLATFORM_LINUX:
    PLATFORM = "LINUX"
elif GK_PLATFORM == GK_PLATFORM_ANDROID:
    PLATFORM = "ANDROID"