瀏覽代碼

Converted GLAD to header only

pull/129/merge
raysan5 8 年之前
父節點
當前提交
058af472ea
共有 4 個檔案被更改,包括 7681 行新增7696 行删除
  1. +1
    -11
      src/Makefile
  2. +0
    -7684
      src/external/glad.c
  3. +7678
    -0
      src/external/glad.h
  4. +2
    -1
      src/rlgl.c

+ 1
- 11
src/Makefile 查看文件

@ -92,13 +92,7 @@ else
endif
# define all object files required
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
OBJS = core.o rlgl.o glad.o shapes.o text.o textures.o models.o audio.o utils.o camera.o gestures.o stb_vorbis.o
else
#GLAD only required on desktop platform
OBJS = core.o rlgl.o shapes.o text.o textures.o models.o audio.o stb_vorbis.o utils.o camera.o gestures.o
endif
OBJS = core.o rlgl.o shapes.o text.o textures.o models.o audio.o utils.o camera.o gestures.o stb_vorbis.o
# typing 'make' will invoke the default target entry called 'all',
# in this case, the 'default' target entry is raylib
@ -153,10 +147,6 @@ camera.o: camera.c
gestures.o: gestures.c
$(CC) -c gestures.c $(CFLAGS) $(INCLUDES) -D$(PLATFORM)
# compile glad module
glad.o: external/glad.c
$(CC) -c external/glad.c $(CFLAGS) $(INCLUDES)
# compile stb_vorbis library
stb_vorbis.o: external/stb_vorbis.c
$(CC) -c external/stb_vorbis.c -O1 $(INCLUDES) -D$(PLATFORM)

+ 0
- 7684
src/external/glad.c
文件差異過大導致無法顯示
查看文件


+ 7678
- 0
src/external/glad.h
文件差異過大導致無法顯示
查看文件


+ 2
- 1
src/rlgl.c 查看文件

@ -48,7 +48,8 @@
#ifdef __APPLE__
#include <OpenGL/gl3.h> // OpenGL 3 library for OSX
#else
#include "external/glad.h" // GLAD library, includes OpenGL headers
#define GLAD_IMPLEMENTATION
#include "external/glad.h" // GLAD extensions loading library, includes OpenGL headers
#endif
#endif

Loading…
取消
儲存