24 lines
789 B
C
24 lines
789 B
C
|
#ifndef NK_GLFW_H_
|
||
|
#define NK_GLFW_H_
|
||
|
|
||
|
#include "../../nuklear.h"
|
||
|
|
||
|
#include <GLFW/glfw3.h>
|
||
|
|
||
|
enum nk_glfw_init_state{NK_GLFW3_DEFAULT=0, NK_GLFW3_INSTALL_CALLBACKS};
|
||
|
NK_API struct nk_context *nk_glfw3_init(GLFWwindow *win, enum nk_glfw_init_state);
|
||
|
NK_API void nk_glfw3_font_stash_begin(struct nk_font_atlas **atlas);
|
||
|
NK_API void nk_glfw3_font_stash_end(void);
|
||
|
|
||
|
NK_API void nk_glfw3_new_frame(void);
|
||
|
NK_API void nk_glfw3_render(enum nk_anti_aliasing , int max_vertex_buffer, int max_element_buffer);
|
||
|
NK_API void nk_glfw3_shutdown(void);
|
||
|
|
||
|
NK_API void nk_glfw3_device_destroy(void);
|
||
|
NK_API void nk_glfw3_device_create(void);
|
||
|
|
||
|
NK_API void nk_glfw3_char_callback(GLFWwindow *win, unsigned int codepoint);
|
||
|
NK_API void nk_gflw3_scroll_callback(GLFWwindow *win, double xoff, double yoff);
|
||
|
|
||
|
#endif
|