Lines Matching defs:cmd
313 RenderingCommand &cmd = commands->back();
315 memcpy(cmd.bounds, out_rect.rect.bounds, sizeof(cmd.bounds));
335 RenderingCommand::TextureSource &src = cmd.textures[cmd.texture_count];
336 cmd.texture_count++;
340 float bound_percent = (cmd.bounds[b] - display_rect.bounds[b % 2]) /
598 for (const RenderingCommand &cmd : commands) {
599 if (cmd.texture_count <= 0) {
606 if (cmd.texture_count > blend_programs_.size()) {
611 GLint program = blend_programs_[cmd.texture_count - 1].get();
617 glUniform4f(gl_viewport_loc, cmd.bounds[0] / (float)frame_width,
618 cmd.bounds[1] / (float)frame_height,
619 (cmd.bounds[2] - cmd.bounds[0]) / (float)frame_width,
620 (cmd.bounds[3] - cmd.bounds[1]) / (float)frame_height);
622 for (unsigned src_index = 0; src_index < cmd.texture_count; src_index++) {
623 const RenderingCommand::TextureSource &src = cmd.textures[src_index];
635 glScissor(cmd.bounds[0], cmd.bounds[1], cmd.bounds[2] - cmd.bounds[0],
636 cmd.bounds[3] - cmd.bounds[1]);
639 for (unsigned src_index = 0; src_index < cmd.texture_count; src_index++) {