Sfoglia il codice sorgente

Replaced GLEW by GLAD

Removed GLEW external dependency, now it works with GLAD
Kept GLEW path, just in case... detected weird behaviour when testing
with gDEBugger
pull/81/head
raysan5 10 anni fa
parent
commit
4e57bd1f18
4 ha cambiato i file con 18304 aggiunte e 18435 eliminazioni
  1. +1
    -1
      src/core.c
  2. +6972
    -7101
      src/glad.c
  3. +11328
    -11331
      src/glad.h
  4. +3
    -2
      src/rlgl.c

+ 1
- 1
src/core.c Vedi File

@ -55,7 +55,7 @@
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB)
#define GLEW_EXTENSIONS_LOADER
#define GLAD_EXTENSIONS_LOADER
#if defined(GLEW_EXTENSIONS_LOADER)
#define GLEW_STATIC
#include <GL/glew.h> // GLEW extensions loading lib

+ 6972
- 7101
src/glad.c
File diff soppresso perché troppo grande
Vedi File


+ 11328
- 11331
src/glad.h
File diff soppresso perché troppo grande
Vedi File


+ 3
- 2
src/rlgl.c Vedi File

@ -46,8 +46,9 @@
#ifdef __APPLE__ // OpenGL include for OSX
#include <OpenGL/gl3.h>
#else
#include <GL/glew.h> // GLEW header, includes OpenGL headers
//#include "glad.h" // glad header, includes OpenGL headers
//#define GLEW_STATIC
//#include <GL/glew.h> // GLEW header, includes OpenGL headers
#include "glad.h" // glad header, includes OpenGL headers
#endif
#endif

Caricamento…
Annulla
Salva