Lines Matching defs:format

102 /// NK_INCLUDE_VERTEX_BUFFER_OUTPUT | Defining this adds a vertex draw command list backend to this library, which allows you to convert queue commands into vertex draw commands. This is mainly if you need a hardware accessible format for OpenGL, DirectX, Vulkan, Metal,...
315 #define NK_PRINTF_VARARG_FUNC(fmtargnumber) __attribute__((format(__printf__, fmtargnumber, fmtargnumber+1)))
316 #define NK_PRINTF_VALIST_FUNC(fmtargnumber) __attribute__((format(__printf__, fmtargnumber, 0)))
927 /// drawing API and the optional vertex buffer API only takes this format and
928 /// converts it into a hardware accessible format.
1084 /// vertexes by calling `nk_convert` which takes in your preferred vertex format.
1137 /// __nk_convert__ | Converts from the abstract draw commands list into a hardware accessible vertex format
1163 const struct nk_draw_vertex_layout_element *vertex_layout; /* describes the vertex output format and packing */
1215 /// three buffers with vertexes, vertex draw commands and vertex indices. The vertex format
3887 use another texture coordinate format and a lot more:
3973 /* texture coordinate format with either pixel or UV coordinates */
4338 drawing API and the optional vertex buffer API only takes this format and
4339 converts it into a hardware accessible format.
4716 enum nk_draw_vertex_layout_format format;
6040 nuklear's use cases. IMPORTANT: this requires float format IEEE 754
6925 /* copy all non-format characters */
9473 element->format == NK_FORMAT_COUNT);
9477 enum nk_draw_vertex_layout_format format)
9479 /* if this triggers you tried to provide a value format for a color */
9481 NK_ASSERT(format >= NK_FORMAT_COLOR_BEGIN);
9482 NK_ASSERT(format <= NK_FORMAT_COLOR_END);
9483 if (format < NK_FORMAT_COLOR_BEGIN || format > NK_FORMAT_COLOR_END) return;
9490 switch (format) {
9491 default: NK_ASSERT(0 && "Invalid vertex layout color format"); break;
9552 enum nk_draw_vertex_layout_format format)
9556 /* if this triggers you tried to provide a color format for a value */
9557 NK_ASSERT(format < NK_FORMAT_COLOR_BEGIN);
9558 if (format >= NK_FORMAT_COLOR_BEGIN && format <= NK_FORMAT_COLOR_END) return;
9560 switch (format) {
9561 default: NK_ASSERT(0 && "invalid vertex layout format"); break;
9615 case NK_VERTEX_POSITION: nk_draw_vertex_element(address, &pos.x, 2, elem_iter->format); break;
9616 case NK_VERTEX_TEXCOORD: nk_draw_vertex_element(address, &uv.x, 2, elem_iter->format); break;
9617 case NK_VERTEX_COLOR: nk_draw_vertex_color(address, &color.r, elem_iter->format); break;
10979 int indexToLocFormat; /* format needed to map from glyph index to glyph */
11175 nk_ushort format = nk_ttUSHORT(data + index_map + 0);
11176 if (format == 0) { /* apple byte encoding */
11181 } else if (format == 6) {
11187 } else if (format == 2) {
11190 } else if (format == 4) { /* standard mapping for windows fonts: binary search collection of ranges */
11235 } else if (format == 12 || format == 13) {
11250 if (format == 12)
11252 else /* format == 13 */
11276 if (info->indexToLocFormat >= 2) return -1; /* unknown index->glyph map format */
11395 /* now convert them to our format */