Unifying access to GLEW from the Blender Game Engine
authorDalai Felinto <dfelinto@gmail.com>
Thu, 11 May 2017 13:53:09 +0000 (15:53 +0200)
committerDalai Felinto <dfelinto@gmail.com>
Thu, 11 May 2017 14:08:03 +0000 (16:08 +0200)
Note: This is not about functionality, but about using the same stub file
we are using in Blender for the game engine in blender2.8.

25 files changed:
source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
source/gameengine/BlenderRoutines/KX_BlenderCanvas.cpp
source/gameengine/GamePlayer/common/GPC_Canvas.h
source/gameengine/GamePlayer/ghost/GPG_Application.cpp
source/gameengine/Ketsji/BL_Shader.cpp
source/gameengine/Ketsji/BL_Texture.cpp
source/gameengine/Ketsji/KX_BlenderMaterial.cpp
source/gameengine/Ketsji/KX_Dome.h
source/gameengine/Ketsji/KX_PythonInit.cpp
source/gameengine/Physics/Bullet/CMakeLists.txt
source/gameengine/Rasterizer/CMakeLists.txt
source/gameengine/Rasterizer/RAS_2DFilterManager.cpp
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_ListRasterizer.cpp
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLLight.cpp
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLOffScreen.cpp
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLSync.cpp
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_StorageVA.cpp
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_StorageVBO.cpp
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_StorageVBO.h
source/gameengine/VideoTexture/ImageBase.h
source/gameengine/VideoTexture/ImageRender.cpp
source/gameengine/VideoTexture/ImageViewport.cpp
source/gameengine/VideoTexture/Texture.cpp
source/gameengine/VideoTexture/VideoDeckLink.h

index 6c3751ae34d6773d7d4d3c0f60119226f81522cd..6e698166fd9bb208a1cd2796d1f5f1c5e7bfb8db 100644 (file)
@@ -40,7 +40,7 @@
 #  pragma warning (disable:4786)
 #endif
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #include "KX_BlenderCanvas.h"
 #include "KX_BlenderKeyboardDevice.h"
index 927b26faf8afeb87b4574b050e10fec74093ab40..a6b2340d7b4dc9781b58a99ea94f83996acb1a29 100644 (file)
@@ -29,7 +29,7 @@
  *  \ingroup blroutines
  */
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #include "MEM_guardedalloc.h"
 
index 9a108203ee8ab0c9e83392c59e1687bbc959048f..688ed8ac0f40972c1f1bf8ae4da7fddd8c533db3 100644 (file)
@@ -40,7 +40,7 @@
 #  include <windows.h>
 #endif  /* WIN32 */
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #include <map>
 
index 408006a0daec6aff384e60181509a229c7cbda22..50c34bbadaf013dd3cbef68985689b971817c333 100644 (file)
@@ -36,7 +36,7 @@
 #  include <windows.h>
 #endif
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 #include "GPU_extensions.h"
 #include "GPU_init_exit.h"
 
index 72815cadc703b9b24ac52d9d866a1963fcda514a..d344e18c3137a4473d9ec6fa1a7c30aef0b942f3 100644 (file)
@@ -22,7 +22,7 @@
  *  \ingroup ketsji
  */
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #include <iostream>
 #include "BL_Shader.h"
index cc7fea5ad25106f60c3fe886f750455832265c45..c3b799b9424393e3be3307d94fd968cc090d11d7 100644 (file)
@@ -22,7 +22,7 @@
  *  \ingroup ketsji
  */
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #include <iostream>
 #include <map>
index 476fbd29b8b96b5fcb2ec84d1ba2d9c6275c61d3..d26e35f8138f626dab6c58f5e419756303eb6f88 100644 (file)
@@ -22,7 +22,7 @@
  *  \ingroup ketsji
  */
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #include "KX_BlenderMaterial.h"
 #include "BL_Material.h"
index 420565e62f6e7e1059421db75973d92e4264e390..5a0c4588ae2232b5740960b6eb69a53889c8e164 100644 (file)
@@ -38,7 +38,7 @@
 #include "RAS_IRasterizer.h"
 #include "KX_KetsjiEngine.h"
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 #include <vector>
 
 #include "MEM_guardedalloc.h"
index cdc2f9f3644c9678cc9631d71200c33c00e2c70a..97a7e161e9f220f63d98466961bbf94dad58de9e 100644 (file)
@@ -30,7 +30,7 @@
  *  \ingroup ketsji
  */
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #ifdef _MSC_VER
 #  pragma warning (disable:4786)
index e52dc1ba05282e707c0e6bffa2f671cbfaf36932..8b00f1b47fa4e15d9e03447a7916500bc1628dbc 100644 (file)
@@ -37,6 +37,7 @@ set(INC
        ../../SceneGraph
        ../../../blender/blenkernel
        ../../../blender/blenlib
+       ../../../blender/gpu
        ../../../blender/makesdna
        ../../../../intern/container
        ../../../../intern/guardedalloc
index c65fcac516155a48efafd01e8313b905386e686d..fc7dc90e03b4db353109090f2889dda55a9619b4 100644 (file)
@@ -31,6 +31,7 @@ set(INC
        ../../blender/makesdna
        ../../blender/blenlib
        ../../blender/blenkernel
+       ../../blender/gpu
        ../../blender/imbuf
        ../../../intern/container
        ../../../intern/glew-mx
index 82b26749fd1256cfc957e7a4a7ac05434fc618ae..ae3c17a52abdf2603f48bbf08d452dcf419670f1 100644 (file)
@@ -43,7 +43,7 @@
 #include "RAS_2DFilterManager.h"
 #include <iostream>
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #include <stdio.h>
 
index b2d580161ca404f4d22d64a332c7d27c4b83ae21..71c8cfe745f8c7c12b3b111e4854bb1e89210e2e 100644 (file)
@@ -30,7 +30,7 @@
 #include <windows.h>
 #endif // WIN32
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #include "RAS_MaterialBucket.h"
 #include "RAS_TexVert.h"
index fff988a07c5215c203a5c1ff3520de37cb531bc2..69e859f06d982bbafe53c08c7c9d7de64c140dec 100644 (file)
@@ -25,7 +25,7 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #include <stdio.h>
 
index e589bffcaf153d65cd5994942e1ba789b2383ccb..58b3c61bd0586ed9678a744ae0b168ca2374c678 100644 (file)
@@ -25,7 +25,7 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #include <stdio.h>
 
index 339f27aa86e5cd31511f95869a91cff2d5e881cc..5eed9b3b8f8cd47a1a34421f3162855dc2aeb450 100644 (file)
@@ -35,7 +35,7 @@
  
 #include "RAS_OpenGLRasterizer.h"
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #include "RAS_ICanvas.h"
 #include "RAS_Rect.h"
index d54b32320679add7232a686921be265a1912261f..26b956cd74e36a9a3cbdbd2760ed142f0c61a79d 100644 (file)
@@ -25,7 +25,7 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #include <stdio.h>
 
index 316871e602506887ac29b512a935efeea4b25985..f980116f5f822102927780aea06e9bd4b67e57fe 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "RAS_StorageVA.h"
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 RAS_StorageVA::RAS_StorageVA(int *texco_num, RAS_IRasterizer::TexCoGen *texco, int *attrib_num, RAS_IRasterizer::TexCoGen *attrib, int *attrib_layer) :
        m_drawingmode(RAS_IRasterizer::KX_TEXTURED),
index 114defb60a50ea201ed9b770630f0cdd36a79e6d..4ba5882a46e2744eb35e9cd521a45e977277f5eb 100644 (file)
@@ -28,7 +28,7 @@
 #include "RAS_StorageVBO.h"
 #include "RAS_MeshObject.h"
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 VBO::VBO(RAS_DisplayArray *data, unsigned int indices)
 {
index 4c8e4a8931c4e7d1b5bbfc3070f963b971057427..c82b6a3206d43761ead5d9d27deb643ea79b935e 100644 (file)
@@ -29,7 +29,7 @@
 #define __KX_VERTEXBUFFEROBJECTSTORAGE
 
 #include <map>
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #include "RAS_IStorage.h"
 #include "RAS_IRasterizer.h"
index 4c9fc5a58fb777e42c1749f7ee6b22192d440a24..5a09c9a67b39cab18cfb8ae33fb2019183327fb6 100644 (file)
@@ -40,7 +40,7 @@
 
 #include "FilterBase.h"
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 // forward declarations
 struct PyImage;
index 7e8c534d7d5d8109dea30f79c0e86d84e064c307..57062343b67b73c365b6e7b195aaa83edcb6dfb6 100644 (file)
@@ -36,7 +36,7 @@
 #include <math.h>
 
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #include "KX_PythonInit.h"
 #include "DNA_scene_types.h"
index 8852c19005328bf569f4edf110028e5bcd3c2b2c..ad3d8875e28951ec36ca9fc76d04ba81832e2f64 100644 (file)
@@ -33,7 +33,7 @@
 #include "EXP_PyObjectPlus.h"
 #include <structmember.h>
 
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 #include "KX_PythonInit.h"
 #include "RAS_ICanvas.h"
index bb995747360be98a484cb4b984f6ebf0d31bb8ab..48dc4c705bf6a65c27521a06d9ebd25d3ead7532 100644 (file)
@@ -55,7 +55,7 @@
 #include "Exception.h"
 
 #include <memory.h>
-#include "glew-mx.h"
+#include "GPU_glew.h"
 
 extern "C" {
        #include "IMB_imbuf.h"
index 50099d2ead47a95f00d6e971479e67fc1fdce4b4..d5419176691e825fd44c6e5117fd36ca37650eac 100644 (file)
@@ -47,7 +47,7 @@ extern "C" {
 #include "BLI_threads.h"
 #include "BLI_blenlib.h"
 }
-#include "GL/glew.h"
+#include "GPU_glew.h"
 #ifdef WIN32
 #include "dvpapi.h"
 #endif