Source

pygamekit / gamekit.pyx

Full commit

include "prerequisites.pxi"
include "sensor.pxi"
include "gameobject.pxi"
include "scene.pxi"
include "engine.pxi"
include "blendfile.pxi"
include "input.pxi"
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 = 1280
prefs.winsize.y = 720
#prefs.fullscreen = True
prefs.wintitle = to_stdstring("Pixelements Python Gamekit.")
#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"