RetroArch
Classes | Macros | Functions | Variables
nk_common.c File Reference
#include <streams/file_stream.h>
#include "nk_common.h"
#include "../../menu_driver.h"
#include "../../../gfx/video_driver.h"
Include dependency graph for nk_common.c:

Classes

struct  nk_vertex
 

Macros

#define NK_INCLUDE_FIXED_TYPES
 
#define NK_INCLUDE_STANDARD_IO
 
#define NK_INCLUDE_DEFAULT_ALLOCATOR
 
#define NK_INCLUDE_VERTEX_BUFFER_OUTPUT
 
#define NK_INCLUDE_FONT_BAKING
 
#define NK_INCLUDE_DEFAULT_FONT
 
#define NK_IMPLEMENTATION
 

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_upload_atlas (struct nk_device *dev, const void *image, int width, int height)
 
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)
 

Variables

struct nk_font * font
 
struct nk_font_atlas atlas
 
struct nk_user_font usrfnt
 
struct nk_allocator nk_alloc
 
struct nk_device device
 

Macro Definition Documentation

◆ NK_IMPLEMENTATION

#define NK_IMPLEMENTATION

◆ 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_VERTEX_BUFFER_OUTPUT

#define NK_INCLUDE_VERTEX_BUFFER_OUTPUT

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

◆ usrfnt

struct nk_user_font usrfnt