Use SDL’s OpenGL headers
This commit is contained in:
parent
b1edf540d8
commit
3d8e22ed50
@ -2,7 +2,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "shader.h"
|
#include "shader.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include <OpenGL/gl3.h>
|
|
||||||
|
|
||||||
static const char *vertex_shader = "\n\
|
static const char *vertex_shader = "\n\
|
||||||
#version 150 \n\
|
#version 150 \n\
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#ifndef shader_h
|
#ifndef shader_h
|
||||||
#define shader_h
|
#define shader_h
|
||||||
#include <OpenGL/gl3.h>
|
#define GL_GLEXT_PROTOTYPES
|
||||||
|
#include <SDL2/SDL_opengl.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
typedef struct shader_s {
|
typedef struct shader_s {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user