Lines Matching defs:texture
1152 nk_handle texture; /* texture handle to a texture with a white pixel */
1153 struct nk_vec2 uv; /* coordinates to a white pixel in the texture */
1162 struct nk_draw_null_texture null; /* handle to texture with a white pixel for shape drawing */
3791 `nk_user_font`. First a texture atlas handle used to draw text as subimages
3792 of a bigger font atlas texture and a callback to query a character's glyph
3821 font.texture.id = your_font_texture;
3830 The font baker APIs can be used to create a font plus font atlas texture
3858 you created our texture beforehand. `nk_font_atlas_end` requires a handle
3859 to your font texture or object and optionally fills a `struct nk_draw_null_texture`
3874 nk_font_atlas_end(&atlas, nk_handle_id(texture), 0);
3887 use another texture coordinate format and a lot more:
3905 /* texture coordinates */
3925 nk_handle texture;
3926 /* texture handle to the used font atlas or texture */
3932 NK_COORD_UV, /* texture coordinates inside font glyphs are clamped between 0-1 */
3933 NK_COORD_PIXEL /* texture coordinates inside font glyphs are in absolute pixel */
3973 /* texture coordinate format with either pixel or UV coordinates */
4001 nk_handle texture;
4725 nk_handle texture;
4726 /* current texture to set */
4793 NK_API void nk_draw_list_add_image(struct nk_draw_list*, struct nk_image texture, struct nk_rect rect, struct nk_color);
9342 nk_handle texture)
9362 cmd->texture = texture;
9390 nk_draw_list_push_command(list, rect, list->config.null.texture);
9395 nk_draw_list_push_command(list, rect, prev->texture);
9399 nk_draw_list_push_image(struct nk_draw_list *list, nk_handle texture)
9404 nk_draw_list_push_command(list, nk_null_rect, texture);
9408 prev->texture = texture;
9412 } else if (prev->texture.id != texture.id
9416 ) nk_draw_list_push_command(list, prev->clip_rect, texture);
10007 if (cmd && cmd->texture.ptr != list->config.null.texture.ptr)
10008 nk_draw_list_push_image(list, list->config.null.texture);
10210 nk_draw_list_push_image(list, list->config.null.texture);
10318 nk_draw_list_add_image(struct nk_draw_list *list, struct nk_image texture,
10323 /* push new command with given texture */
10324 nk_draw_list_push_image(list, texture.handle);
10325 if (nk_image_is_subimage(&texture)) {
10326 /* add region inside of the texture */
10328 uv[0].x = (float)texture.region[0]/(float)texture.w;
10329 uv[0].y = (float)texture.region[1]/(float)texture.h;
10330 uv[1].x = (float)(texture.region[0] + texture.region[2])/(float)texture.w;
10331 uv[1].y = (float)(texture.region[1] + texture.region[3])/(float)texture.h;
10356 nk_draw_list_push_image(list, font->texture);
12825 /* texture height */
13111 font->texture = atlas;
13120 font->handle.texture = font->texture;
13836 nk_font_atlas_end(struct nk_font_atlas *atlas, nk_handle texture,
13844 null->texture = texture;
13848 null->texture = texture;
13853 font_iter->texture = texture;
13855 font_iter->handle.texture = texture;
13859 atlas->cursors[i].img.handle = texture;