Merge pull request #636 from Ryder17z/patch-1

Proposal: Update nuklear_sdl_renderer.h to use recommended path for SDL.h
This commit is contained in:
Rob Loach 2024-05-25 15:46:07 -04:00 committed by GitHub
commit b9e84c03f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,10 @@
#ifndef NK_SDL_RENDERER_H_ #ifndef NK_SDL_RENDERER_H_
#define NK_SDL_RENDERER_H_ #define NK_SDL_RENDERER_H_
#include <SDL2/SDL.h> #ifndef NK_SDL_RENDERER_SDL_H
#define NK_SDL_RENDERER_SDL_H <SDL.h>
#endif
#include NK_SDL_RENDERER_SDL_H
NK_API struct nk_context* nk_sdl_init(SDL_Window *win, SDL_Renderer *renderer); NK_API struct nk_context* nk_sdl_init(SDL_Window *win, SDL_Renderer *renderer);
NK_API void nk_sdl_font_stash_begin(struct nk_font_atlas **atlas); NK_API void nk_sdl_font_stash_begin(struct nk_font_atlas **atlas);
NK_API void nk_sdl_font_stash_end(void); NK_API void nk_sdl_font_stash_end(void);