Mercurial > repos > blastem
comparison nuklear_ui/nuklear_sdl_gles2.h @ 1658:fa9ae059e4d3
Added support for GLES in addition to desktop GL
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 30 Dec 2018 21:10:44 -0800 |
parents | b581663c42ec |
children | 56a1171e29b9 |
comparison
equal
deleted
inserted
replaced
1657:774096402918 | 1658:fa9ae059e4d3 |
---|---|
15 #ifndef NK_SDL_GLES2_H_ | 15 #ifndef NK_SDL_GLES2_H_ |
16 #define NK_SDL_GLES2_H_ | 16 #define NK_SDL_GLES2_H_ |
17 | 17 |
18 #include <SDL.h> | 18 #include <SDL.h> |
19 #ifndef DISABLE_OPENGL | 19 #ifndef DISABLE_OPENGL |
20 #ifdef USE_GLES | |
21 #include <SDL_opengles2.h> | |
22 #else | |
20 #include <GL/glew.h> | 23 #include <GL/glew.h> |
24 #endif | |
21 #endif | 25 #endif |
22 | 26 |
23 | 27 |
24 NK_API struct nk_context* nk_sdl_init(SDL_Window *win); | 28 NK_API struct nk_context* nk_sdl_init(SDL_Window *win); |
25 NK_API void nk_sdl_font_stash_begin(struct nk_font_atlas **atlas); | 29 NK_API void nk_sdl_font_stash_begin(struct nk_font_atlas **atlas); |