23 #define NK_INCLUDE_FIXED_TYPES 24 #define NK_INCLUDE_STANDARD_IO 25 #define NK_INCLUDE_STANDARD_VARARGS 26 #define NK_INCLUDE_DEFAULT_ALLOCATOR 27 #define NK_INCLUDE_VERTEX_BUFFER_OUTPUT 28 #define NK_INCLUDE_FONT_BAKING 29 #define NK_INCLUDE_DEFAULT_FONT 31 #define UNUSED(a) (void)a 32 #define MIN(a,b) ((a) < (b) ? (a) : (b)) 33 #define MAX(a,b) ((a) < (b) ? (b) : (a)) 34 #define LEN(a) (sizeof(a)/sizeof(a)[0]) 39 #include "../../../deps/nuklear/nuklear.h" 40 #include "../../../deps/stb/stb_image.h" 42 #if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) 43 #include "../../../gfx/common/gl_common.h" 46 #define MAX_VERTEX_MEMORY (512 * 1024) 47 #define MAX_ELEMENT_MEMORY (128 * 1024) 49 #define NK_SYSTEM_TAB_END NK_SYSTEM_TAB_SETTINGS 55 #if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) 72 extern struct nk_font *
font;
73 extern struct nk_font_atlas
atlas;
void nk_common_mem_free(nk_handle unused, void *ptr)
Definition: nk_common.c:305
const GLvoid * ptr
Definition: nx_glsym.h:242
Definition: nuklear.h:2484
#define const
Definition: zconf.h:217
nk_anti_aliasing
Definition: nuklear.h:969
char * nk_common_file_load(const char *path, size_t *size)
Definition: nk_common.c:75
void * nk_common_mem_alloc(nk_handle a, void *old, nk_size b)
Definition: nk_common.c:299
GLsizei const GLchar ** path
Definition: glext.h:7901
unsigned int GLuint
Definition: nx_gl.h:48
GLsizeiptr size
Definition: glext.h:6559
struct nk_font * font
Definition: nk_common.c:40
struct nk_device device
Definition: nk_common.c:44
struct nk_buffer cmds
Definition: nk_common.h:53
void nk_common_device_init(struct nk_device *dev)
Definition: nk_common.c:83
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
void nk_common_device_shutdown(struct nk_device *dev)
Definition: nk_common.c:147
NK_SIZE_TYPE nk_size
Definition: nuklear.h:401
Definition: nuklear.h:460
AVFormatContext * ctx
Definition: record_ffmpeg.c:247
struct nk_font_atlas atlas
Definition: nk_common.c:41
Definition: nuklear.h:977
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: glext.h:6305
struct nk_draw_null_texture null
Definition: nk_common.h:54
Definition: nk_common.h:51
struct nk_image color_bars test_entry test_entry2
Definition: nk_common.h:96
struct nk_allocator nk_alloc
Definition: nk_common.c:43
GLint GLint GLsizei width
Definition: glext.h:6293
Definition: nuklear.h:484
struct nk_image nk_common_image_load(const char *filename)
Definition: nk_common.c:52
Definition: nuklear.h:461
Definition: nuklear.h:4133
Definition: nuklear.h:2685
int GLint
Definition: nx_gl.h:45
struct nk_user_font usrfnt
Definition: nk_common.c:42
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844
void nk_common_device_draw(struct nk_device *dev, struct nk_context *ctx, int width, int height, enum nk_anti_aliasing AA)
Definition: nk_common.c:161
GLint GLint GLsizei GLsizei height
Definition: glext.h:6293
void nk_upload_atlas(struct nk_device *dev, const void *image, int width, int height)
Definition: nk_common.c:137