Эх сурвалжийг харах

Introduce define for software fonts

Add NK_INCLUDE_SOFTWARE_FONT to allow font generation without
the need to have vertexbuffers.

Required for software rasterization.

Signed-off-by: Patrick Rudolph <[email protected]>
Patrick Rudolph 8 жил өмнө
parent
commit
e888338498
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      nuklear.h

+ 1 - 1
nuklear.h

@@ -2320,7 +2320,7 @@ typedef void(*nk_query_font_glyph_f)(nk_handle handle, float font_height,
                                     struct nk_user_font_glyph *glyph,
                                     nk_rune codepoint, nk_rune next_codepoint);
 
-#ifdef NK_INCLUDE_VERTEX_BUFFER_OUTPUT
+#if defined(NK_INCLUDE_VERTEX_BUFFER_OUTPUT) || defined(NK_INCLUDE_SOFTWARE_FONT)
 struct nk_user_font_glyph {
     struct nk_vec2 uv[2];
     /* texture coordinates */