19 lines
724 B
C
19 lines
724 B
C
|
#ifndef NK_D3D11_H_
|
||
|
#define NK_D3D11_H_
|
||
|
|
||
|
#include "../../nuklear.h"
|
||
|
|
||
|
typedef struct ID3D11Device ID3D11Device;
|
||
|
typedef struct ID3D11DeviceContext ID3D11DeviceContext;
|
||
|
|
||
|
NK_API struct nk_context *nk_d3d11_init(ID3D11Device *device, int width, int height, unsigned int max_vertex_buffer, unsigned int max_index_buffer);
|
||
|
NK_API void nk_d3d11_font_stash_begin(struct nk_font_atlas **atlas);
|
||
|
NK_API void nk_d3d11_font_stash_end(void);
|
||
|
NK_API void nk_d3d11_render(ID3D11DeviceContext *context, enum nk_anti_aliasing);
|
||
|
NK_API void nk_d3d11_resize(ID3D11DeviceContext *context, int width, int height);
|
||
|
NK_API void nk_d3d11_shutdown(void);
|
||
|
|
||
|
NK_API int nk_d3d11_handle_event(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
|
||
|
|
||
|
#endif
|