[#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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user