Lines Matching defs:cmd
127 const struct nk_draw_command *cmd;
164 nk_draw_foreach(cmd, &glfw.ctx, &dev->cmds)
166 if (!cmd->elem_count) continue;
167 glBindTexture(GL_TEXTURE_2D, (GLuint)cmd->texture.id);
169 (GLint)(cmd->clip_rect.x * glfw.fb_scale.x),
170 (GLint)((glfw.height - (GLint)(cmd->clip_rect.y + cmd->clip_rect.h)) * glfw.fb_scale.y),
171 (GLint)(cmd->clip_rect.w * glfw.fb_scale.x),
172 (GLint)(cmd->clip_rect.h * glfw.fb_scale.y));
173 glDrawElements(GL_TRIANGLES, (GLsizei)cmd->elem_count, GL_UNSIGNED_SHORT, offset);
174 offset += cmd->elem_count;