diff --git a/demo/d3d11/nuklear_d3d11.h b/demo/d3d11/nuklear_d3d11.h index 7bbfdbe1..ac0b65eb 100644 --- a/demo/d3d11/nuklear_d3d11.h +++ b/demo/d3d11/nuklear_d3d11.h @@ -27,6 +27,7 @@ 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); +#endif /* * ============================================================== * diff --git a/demo/gdi/nuklear_gdi.h b/demo/gdi/nuklear_gdi.h index 13dee60a..3411af0e 100644 --- a/demo/gdi/nuklear_gdi.h +++ b/demo/gdi/nuklear_gdi.h @@ -16,13 +16,13 @@ #define WIN32_LEAN_AND_MEAN #include +typedef struct GdiFont GdiFont; NK_API struct nk_context* nk_gdi_init(GdiFont *font, HDC window_dc, unsigned int width, unsigned int height); NK_API int nk_gdi_handle_event(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam); NK_API void nk_gdi_render(struct nk_color clear); NK_API void nk_gdi_shutdown(void); /* font */ -typedef struct GdiFont GdiFont; NK_API GdiFont* nk_gdifont_create(const char *name, int size); NK_API void nk_gdifont_del(GdiFont *font); NK_API void nk_gdi_set_font(GdiFont *font); diff --git a/demo/gdip/nuklear_gdip.h b/demo/gdip/nuklear_gdip.h index de220d76..e0a72cbc 100644 --- a/demo/gdip/nuklear_gdip.h +++ b/demo/gdip/nuklear_gdip.h @@ -16,17 +16,17 @@ #define WIN32_LEAN_AND_MEAN #include +/* font */ +typedef struct GdipFont GdipFont; +NK_API GdipFont* nk_gdipfont_create(const char *name, int size); +NK_API void nk_gdipfont_del(GdipFont *font); + NK_API struct nk_context* nk_gdip_init(HWND hwnd, unsigned int width, unsigned int height); NK_API void nk_gdip_set_font(GdipFont *font); NK_API int nk_gdip_handle_event(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam); NK_API void nk_gdip_render(enum nk_anti_aliasing AA, struct nk_color clear); NK_API void nk_gdip_shutdown(void); -/* font */ -typedef struct GdipFont GdipFont; -NK_API GdipFont* nk_gdipfont_create(const char *name, int size); -NK_API void nk_gdipfont_del(GdipFont *font); - #endif /* * ==============================================================