[#22177] Adding BLF to the BGE and exposing BLF_load as blf.load

from Mitchell Stokes (moguri) 

also updated blf docs
This commit is contained in:
2010-05-05 06:38:49 +00:00
parent 8961d63c54
commit b63d069055
3 changed files with 85 additions and 4 deletions

View File

@@ -41,6 +41,7 @@ extern "C" {
#include "mathutils.h" // Blender.Mathutils module copied here so the blenderlayer can use.
#include "geometry.h" // Blender.Geometry module copied here so the blenderlayer can use.
#include "bgl.h"
#include "blf_api.h"
#include "marshal.h" /* python header for loading/saving dicts */
}
@@ -1981,6 +1982,7 @@ void setupGamePython(KX_KetsjiEngine* ketsjiengine, KX_Scene* startscene, Main *
initMathutils();
initGeometry();
initBGL();
initBLF();
#ifdef WITH_FFMPEG
initVideoTexture();
@@ -2306,6 +2308,11 @@ PyObject* initBGL()
return BGL_Init();
}
PyObject* initBLF()
{
return BLF_Init();
}
// utility function for loading and saving the globalDict
int saveGamePythonConfig( char **marshal_buffer)
{