Managing to get GBM working

This commit is contained in:
2021-08-16 01:38:35 -04:00
parent 42734a62c9
commit 40a7041295
10 changed files with 739 additions and 23 deletions

View File

@ -17,9 +17,19 @@
#if SETTING_PLATFORM == SETTING_PLATFORM_GLFW
#elif SETTING_PLATFORM == SETTING_PLATFORM_SDL
#include <SDL.h>
#include <SDL_opengl.h>
#include <SDL_opengles2.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <SDL2/SDL_opengles2.h>
#elif SETTING_PLATFORM == SETTING_PLATFORM_GBM
#include <xf86drm.h>
#include <xf86drmMode.h>
#include <gbm.h>
#define GL_GLEXT_PROTOTYPES 1
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#endif
#include <stb_image.h>