Unifying access to GLEW from the Blender Game Engine

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.
This commit is contained in:
Dalai Felinto
2017-05-11 15:53:09 +02:00
parent 15038975a3
commit 6b9ab1f7a2
25 changed files with 25 additions and 23 deletions

View File

@@ -40,7 +40,7 @@
# pragma warning (disable:4786) # pragma warning (disable:4786)
#endif #endif
#include "glew-mx.h" #include "GPU_glew.h"
#include "KX_BlenderCanvas.h" #include "KX_BlenderCanvas.h"
#include "KX_BlenderKeyboardDevice.h" #include "KX_BlenderKeyboardDevice.h"

View File

@@ -29,7 +29,7 @@
* \ingroup blroutines * \ingroup blroutines
*/ */
#include "glew-mx.h" #include "GPU_glew.h"
#include "MEM_guardedalloc.h" #include "MEM_guardedalloc.h"

View File

@@ -40,7 +40,7 @@
# include <windows.h> # include <windows.h>
#endif /* WIN32 */ #endif /* WIN32 */
#include "glew-mx.h" #include "GPU_glew.h"
#include <map> #include <map>

View File

@@ -36,7 +36,7 @@
# include <windows.h> # include <windows.h>
#endif #endif
#include "glew-mx.h" #include "GPU_glew.h"
#include "GPU_extensions.h" #include "GPU_extensions.h"
#include "GPU_init_exit.h" #include "GPU_init_exit.h"

View File

@@ -22,7 +22,7 @@
* \ingroup ketsji * \ingroup ketsji
*/ */
#include "glew-mx.h" #include "GPU_glew.h"
#include <iostream> #include <iostream>
#include "BL_Shader.h" #include "BL_Shader.h"

View File

@@ -22,7 +22,7 @@
* \ingroup ketsji * \ingroup ketsji
*/ */
#include "glew-mx.h" #include "GPU_glew.h"
#include <iostream> #include <iostream>
#include <map> #include <map>

View File

@@ -22,7 +22,7 @@
* \ingroup ketsji * \ingroup ketsji
*/ */
#include "glew-mx.h" #include "GPU_glew.h"
#include "KX_BlenderMaterial.h" #include "KX_BlenderMaterial.h"
#include "BL_Material.h" #include "BL_Material.h"

View File

@@ -38,7 +38,7 @@
#include "RAS_IRasterizer.h" #include "RAS_IRasterizer.h"
#include "KX_KetsjiEngine.h" #include "KX_KetsjiEngine.h"
#include "glew-mx.h" #include "GPU_glew.h"
#include <vector> #include <vector>
#include "MEM_guardedalloc.h" #include "MEM_guardedalloc.h"

View File

@@ -30,7 +30,7 @@
* \ingroup ketsji * \ingroup ketsji
*/ */
#include "glew-mx.h" #include "GPU_glew.h"
#ifdef _MSC_VER #ifdef _MSC_VER
# pragma warning (disable:4786) # pragma warning (disable:4786)

View File

@@ -37,6 +37,7 @@ set(INC
../../SceneGraph ../../SceneGraph
../../../blender/blenkernel ../../../blender/blenkernel
../../../blender/blenlib ../../../blender/blenlib
../../../blender/gpu
../../../blender/makesdna ../../../blender/makesdna
../../../../intern/container ../../../../intern/container
../../../../intern/guardedalloc ../../../../intern/guardedalloc

View File

@@ -31,6 +31,7 @@ set(INC
../../blender/makesdna ../../blender/makesdna
../../blender/blenlib ../../blender/blenlib
../../blender/blenkernel ../../blender/blenkernel
../../blender/gpu
../../blender/imbuf ../../blender/imbuf
../../../intern/container ../../../intern/container
../../../intern/glew-mx ../../../intern/glew-mx

View File

@@ -43,7 +43,7 @@
#include "RAS_2DFilterManager.h" #include "RAS_2DFilterManager.h"
#include <iostream> #include <iostream>
#include "glew-mx.h" #include "GPU_glew.h"
#include <stdio.h> #include <stdio.h>

View File

@@ -30,7 +30,7 @@
#include <windows.h> #include <windows.h>
#endif // WIN32 #endif // WIN32
#include "glew-mx.h" #include "GPU_glew.h"
#include "RAS_MaterialBucket.h" #include "RAS_MaterialBucket.h"
#include "RAS_TexVert.h" #include "RAS_TexVert.h"

View File

@@ -25,7 +25,7 @@
* ***** END GPL LICENSE BLOCK ***** * ***** END GPL LICENSE BLOCK *****
*/ */
#include "glew-mx.h" #include "GPU_glew.h"
#include <stdio.h> #include <stdio.h>

View File

@@ -25,7 +25,7 @@
* ***** END GPL LICENSE BLOCK ***** * ***** END GPL LICENSE BLOCK *****
*/ */
#include "glew-mx.h" #include "GPU_glew.h"
#include <stdio.h> #include <stdio.h>

View File

@@ -35,7 +35,7 @@
#include "RAS_OpenGLRasterizer.h" #include "RAS_OpenGLRasterizer.h"
#include "glew-mx.h" #include "GPU_glew.h"
#include "RAS_ICanvas.h" #include "RAS_ICanvas.h"
#include "RAS_Rect.h" #include "RAS_Rect.h"

View File

@@ -25,7 +25,7 @@
* ***** END GPL LICENSE BLOCK ***** * ***** END GPL LICENSE BLOCK *****
*/ */
#include "glew-mx.h" #include "GPU_glew.h"
#include <stdio.h> #include <stdio.h>

View File

@@ -27,7 +27,7 @@
#include "RAS_StorageVA.h" #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) : 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), m_drawingmode(RAS_IRasterizer::KX_TEXTURED),

View File

@@ -28,7 +28,7 @@
#include "RAS_StorageVBO.h" #include "RAS_StorageVBO.h"
#include "RAS_MeshObject.h" #include "RAS_MeshObject.h"
#include "glew-mx.h" #include "GPU_glew.h"
VBO::VBO(RAS_DisplayArray *data, unsigned int indices) VBO::VBO(RAS_DisplayArray *data, unsigned int indices)
{ {

View File

@@ -29,7 +29,7 @@
#define __KX_VERTEXBUFFEROBJECTSTORAGE #define __KX_VERTEXBUFFEROBJECTSTORAGE
#include <map> #include <map>
#include "glew-mx.h" #include "GPU_glew.h"
#include "RAS_IStorage.h" #include "RAS_IStorage.h"
#include "RAS_IRasterizer.h" #include "RAS_IRasterizer.h"

View File

@@ -40,7 +40,7 @@
#include "FilterBase.h" #include "FilterBase.h"
#include "glew-mx.h" #include "GPU_glew.h"
// forward declarations // forward declarations
struct PyImage; struct PyImage;

View File

@@ -36,7 +36,7 @@
#include <math.h> #include <math.h>
#include "glew-mx.h" #include "GPU_glew.h"
#include "KX_PythonInit.h" #include "KX_PythonInit.h"
#include "DNA_scene_types.h" #include "DNA_scene_types.h"

View File

@@ -33,7 +33,7 @@
#include "EXP_PyObjectPlus.h" #include "EXP_PyObjectPlus.h"
#include <structmember.h> #include <structmember.h>
#include "glew-mx.h" #include "GPU_glew.h"
#include "KX_PythonInit.h" #include "KX_PythonInit.h"
#include "RAS_ICanvas.h" #include "RAS_ICanvas.h"

View File

@@ -55,7 +55,7 @@
#include "Exception.h" #include "Exception.h"
#include <memory.h> #include <memory.h>
#include "glew-mx.h" #include "GPU_glew.h"
extern "C" { extern "C" {
#include "IMB_imbuf.h" #include "IMB_imbuf.h"

View File

@@ -47,7 +47,7 @@ extern "C" {
#include "BLI_threads.h" #include "BLI_threads.h"
#include "BLI_blenlib.h" #include "BLI_blenlib.h"
} }
#include "GL/glew.h" #include "GPU_glew.h"
#ifdef WIN32 #ifdef WIN32
#include "dvpapi.h" #include "dvpapi.h"
#endif #endif