Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_PythonInit.cpp
| Context not available. | |||||
| * \ingroup ketsji | * \ingroup ketsji | ||||
| */ | */ | ||||
| #include "GL/glew.h" | #include "glew-mx.h" | ||||
| #ifdef _MSC_VER | #ifdef _MSC_VER | ||||
| # pragma warning (disable:4786) | # pragma warning (disable:4786) | ||||
| Context not available. | |||||
| static PyObject *gPyGetVsync(PyObject *) | static PyObject *gPyGetVsync(PyObject *) | ||||
| { | { | ||||
| return PyLong_FromLong(gp_Canvas->GetSwapInterval()); | int interval = 0; | ||||
| gp_Canvas->GetSwapInterval(interval); | |||||
| return PyLong_FromLong(interval); | |||||
| } | } | ||||
| static PyObject *gPyShowFramerate(PyObject *, PyObject *args) | static PyObject *gPyShowFramerate(PyObject *, PyObject *args) | ||||
| Context not available. | |||||