RetroArch
Classes | Macros | Functions | Variables
nk_common.h File Reference
#include <string.h>
#include "../../../deps/nuklear/nuklear.h"
#include "../../../deps/stb/stb_image.h"
Include dependency graph for nk_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nk_device
 

Macros

#define NK_INCLUDE_FIXED_TYPES
 
#define NK_INCLUDE_STANDARD_IO
 
#define NK_INCLUDE_STANDARD_VARARGS
 
#define NK_INCLUDE_DEFAULT_ALLOCATOR
 
#define NK_INCLUDE_VERTEX_BUFFER_OUTPUT
 
#define NK_INCLUDE_FONT_BAKING
 
#define NK_INCLUDE_DEFAULT_FONT
 
#define UNUSED(a)   (void)a
 
#define MIN(a, b)   ((a) < (b) ? (a) : (b))
 
#define MAX(a, b)   ((a) < (b) ? (b) : (a))
 
#define LEN(a)   (sizeof(a)/sizeof(a)[0])
 
#define MAX_SIZE   256
 
#define MAX_VERTEX_MEMORY   (512 * 1024)
 
#define MAX_ELEMENT_MEMORY   (128 * 1024)
 
#define NK_SYSTEM_TAB_END   NK_SYSTEM_TAB_SETTINGS
 

Functions

struct nk_image nk_common_image_load (const char *filename)
 
char * nk_common_file_load (const char *path, size_t *size)
 
void nk_common_device_init (struct nk_device *dev)
 
void nk_common_device_shutdown (struct nk_device *dev)
 
void nk_common_device_draw (struct nk_device *dev, struct nk_context *ctx, int width, int height, enum nk_anti_aliasing AA)
 
voidnk_common_mem_alloc (nk_handle a, void *old, nk_size b)
 
void nk_common_mem_free (nk_handle unused, void *ptr)
 
void nk_upload_atlas (struct nk_device *dev, const void *image, int width, int height)
 

Variables

struct nk_font * font
 
struct nk_font_atlas atlas
 
struct nk_user_font usrfnt
 
struct nk_allocator nk_alloc
 
struct nk_device device
 
struct nk_image color_bars test_entry test_entry2
 

Macro Definition Documentation

◆ LEN

#define LEN (   a)    (sizeof(a)/sizeof(a)[0])

◆ MAX

#define MAX (   a,
  b 
)    ((a) < (b) ? (b) : (a))

◆ MAX_ELEMENT_MEMORY

#define MAX_ELEMENT_MEMORY   (128 * 1024)

◆ MAX_SIZE

#define MAX_SIZE   256

◆ MAX_VERTEX_MEMORY

#define MAX_VERTEX_MEMORY   (512 * 1024)

◆ MIN

#define MIN (   a,
  b 
)    ((a) < (b) ? (a) : (b))

◆ NK_INCLUDE_DEFAULT_ALLOCATOR

#define NK_INCLUDE_DEFAULT_ALLOCATOR

◆ NK_INCLUDE_DEFAULT_FONT

#define NK_INCLUDE_DEFAULT_FONT

◆ NK_INCLUDE_FIXED_TYPES

#define NK_INCLUDE_FIXED_TYPES

◆ NK_INCLUDE_FONT_BAKING

#define NK_INCLUDE_FONT_BAKING

◆ NK_INCLUDE_STANDARD_IO

#define NK_INCLUDE_STANDARD_IO

◆ NK_INCLUDE_STANDARD_VARARGS

#define NK_INCLUDE_STANDARD_VARARGS

◆ NK_INCLUDE_VERTEX_BUFFER_OUTPUT

#define NK_INCLUDE_VERTEX_BUFFER_OUTPUT

◆ NK_SYSTEM_TAB_END

#define NK_SYSTEM_TAB_END   NK_SYSTEM_TAB_SETTINGS

◆ UNUSED

#define UNUSED (   a)    (void)a

Function Documentation

◆ nk_common_device_draw()

void nk_common_device_draw ( struct nk_device dev,
struct nk_context ctx,
int  width,
int  height,
enum nk_anti_aliasing  AA 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ nk_common_device_init()

void nk_common_device_init ( struct nk_device dev)
Here is the caller graph for this function:

◆ nk_common_device_shutdown()

void nk_common_device_shutdown ( struct nk_device dev)
Here is the caller graph for this function:

◆ nk_common_file_load()

char* nk_common_file_load ( const char *  path,
size_t *  size 
)
Here is the call graph for this function:

◆ nk_common_image_load()

struct nk_image nk_common_image_load ( const char *  filename)
Here is the call graph for this function:

◆ nk_common_mem_alloc()

void* nk_common_mem_alloc ( nk_handle  a,
void old,
nk_size  b 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ nk_common_mem_free()

void nk_common_mem_free ( nk_handle  unused,
void ptr 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ nk_upload_atlas()

void nk_upload_atlas ( struct nk_device dev,
const void image,
int  width,
int  height 
)
Here is the caller graph for this function:

Variable Documentation

◆ atlas

struct nk_font_atlas atlas

◆ device

struct nk_device device

◆ font

struct nk_font* font

◆ nk_alloc

struct nk_allocator nk_alloc

◆ test_entry2

struct nk_image color_bars test_entry test_entry2

◆ usrfnt

struct nk_user_font usrfnt