mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 06:11:46 +00:00
[client] define GL_GLEXT_PROTOTYPES globally
This commit is contained in:
parent
61f0577ab2
commit
50c460df5a
6 changed files with 2 additions and 8 deletions
|
@ -33,6 +33,7 @@ find_package(GMP)
|
||||||
add_definitions(-D BUILD_VERSION='"${BUILD_VERSION}"')
|
add_definitions(-D BUILD_VERSION='"${BUILD_VERSION}"')
|
||||||
add_definitions(-D USE_NETTLE)
|
add_definitions(-D USE_NETTLE)
|
||||||
add_definitions(-D ATOMIC_LOCKING)
|
add_definitions(-D ATOMIC_LOCKING)
|
||||||
|
add_definitions(-D GL_GLEXT_PROTOTYPES)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${PROJECT_SOURCE_DIR}
|
${PROJECT_SOURCE_DIR}
|
||||||
|
|
|
@ -26,10 +26,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#define GL_GLEXT_PROTOTYPES
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
//#include <GL/glu.h>
|
|
||||||
//#include <GL/glx.h>
|
|
||||||
|
|
||||||
struct Pixel
|
struct Pixel
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#include "shader.h"
|
#include "shader.h"
|
||||||
#include "texture.h"
|
#include "texture.h"
|
||||||
|
|
||||||
#define GL_GLEXT_PROTOTYPES
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
typedef struct EGL_Model EGL_Model;
|
typedef struct EGL_Model EGL_Model;
|
||||||
|
|
|
@ -21,7 +21,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#define GL_GLEXT_PROTOTYPES
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
typedef struct EGL_Shader EGL_Shader;
|
typedef struct EGL_Shader EGL_Shader;
|
||||||
|
@ -34,4 +33,4 @@ bool egl_shader_compile(EGL_Shader * model, const char * vertex_code, size_t ver
|
||||||
void egl_shader_use (EGL_Shader * shader);
|
void egl_shader_use (EGL_Shader * shader);
|
||||||
|
|
||||||
void egl_shader_associate_textures(EGL_Shader * shader, const int count);
|
void egl_shader_associate_textures(EGL_Shader * shader, const int count);
|
||||||
GLint egl_shader_get_uniform_location(EGL_Shader * shader, const char * name);
|
GLint egl_shader_get_uniform_location(EGL_Shader * shader, const char * name);
|
|
@ -22,7 +22,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "shader.h"
|
#include "shader.h"
|
||||||
|
|
||||||
#define GL_GLEXT_PROTOTYPES
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
typedef struct EGL_Texture EGL_Texture;
|
typedef struct EGL_Texture EGL_Texture;
|
||||||
|
|
|
@ -26,7 +26,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
#include <SDL2/SDL_ttf.h>
|
#include <SDL2/SDL_ttf.h>
|
||||||
|
|
||||||
#define GL_GLEXT_PROTOTYPES
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#include <GL/glu.h>
|
#include <GL/glu.h>
|
||||||
#include <GL/glx.h>
|
#include <GL/glx.h>
|
||||||
|
|
Loading…
Reference in a new issue