diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2016-10-13 18:17:17 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2016-10-13 18:17:17 +0300 |
commit | 916e631fc905182734d65f79c5a64a1f57abde22 (patch) | |
tree | 208225c3e8efbe603e5cdf84eaf3f1828bcf6f29 /source/blenderplayer/bad_level_call_stubs | |
parent | 35793504815a1cd0eb38df54d9ae99cc441b4f2f (diff) |
Fix compiling with Blenderplayer
Diffstat (limited to 'source/blenderplayer/bad_level_call_stubs')
-rw-r--r-- | source/blenderplayer/bad_level_call_stubs/CMakeLists.txt | 3 | ||||
-rw-r--r-- | source/blenderplayer/bad_level_call_stubs/stubs.c | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/source/blenderplayer/bad_level_call_stubs/CMakeLists.txt b/source/blenderplayer/bad_level_call_stubs/CMakeLists.txt index 0e570e19258..d2c2129532a 100644 --- a/source/blenderplayer/bad_level_call_stubs/CMakeLists.txt +++ b/source/blenderplayer/bad_level_call_stubs/CMakeLists.txt @@ -35,11 +35,12 @@ set(INC ../../blender/blenloader ../../blender/makesdna ../../blender/makesrna + ../../../intern/glew-mx ../../../intern/guardedalloc ) set(INC_SYS - + ${GLEW_INCLUDE_PATH} ) set(SRC diff --git a/source/blenderplayer/bad_level_call_stubs/stubs.c b/source/blenderplayer/bad_level_call_stubs/stubs.c index 20d3697053b..aabcad65750 100644 --- a/source/blenderplayer/bad_level_call_stubs/stubs.c +++ b/source/blenderplayer/bad_level_call_stubs/stubs.c @@ -178,6 +178,8 @@ struct wmWindowManager; #include "../blender/editors/include/UI_resources.h" #include "../blender/editors/include/UI_view2d.h" #include "../blender/freestyle/FRS_freestyle.h" +#include "../blender/gpu/GPU_immediate.h" +#include "../blender/gpu/GPU_matrix.h" #include "../blender/python/BPY_extern.h" #include "../blender/render/extern/include/RE_engine.h" #include "../blender/render/extern/include/RE_pipeline.h" @@ -778,4 +780,13 @@ void COM_execute(RenderData *rd, Scene *scene, bNodeTree *editingtree, int rende bool RE_RenderResult_is_stereo(RenderResult *res) RET_ZERO void uiTemplateImageViews(uiLayout *layout, struct PointerRNA *imfptr) RET_NONE +/* GPU */ +void gpuMatrixBegin3D_legacy(void) RET_NONE +void gpuMatrixEnd() RET_NONE +void gpuMultMatrix3D(const float m[4][4]) RET_NONE +void gpuTranslate3fv(const float vec[3]) RET_NONE +void gpuScale3fv(const float vec[3]) RET_NONE +void gpuRotateAxis(float deg, char axis) RET_NONE +void immBindBuiltinProgram(GPUBuiltinShader shader_id) RET_NONE + #endif // WITH_GAMEENGINE |