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)
#endif
#include "glew-mx.h"
#include "GPU_glew.h"
#include "KX_BlenderCanvas.h"
#include "KX_BlenderKeyboardDevice.h"

View File

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

View File

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

View 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"

View File

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

View File

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

View File

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

View 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"

View File

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

View File

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

View File

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

View File

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

View 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"

View File

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

View File

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

View 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"

View File

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

View 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),

View 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)
{

View 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"

View File

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

View 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"

View 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"

View 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"

View 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