Home | History | Annotate | Download | only in graw

Lines Matching full:ctx

29 static struct pipe_context *ctx = NULL;
101 ctx->set_viewport_state( ctx, &vp );
130 handle = ctx->create_vertex_elements_state(ctx, 3, ve);
131 ctx->bind_vertex_elements_state(ctx, handle);
137 vbuf[0].buffer = pipe_buffer_create_with_data(ctx,
146 vbuf[1].buffer = pipe_buffer_create_with_data(ctx,
152 ctx->set_vertex_buffers(ctx, 2, vbuf);
155 ibuf.buffer = pipe_buffer_create_with_data(ctx,
163 ctx->set_index_buffer(ctx, &ibuf);
181 handle = graw_parse_vertex_shader(ctx, text);
182 ctx->bind_vs_state(ctx, handle);
195 handle = graw_parse_fragment_shader(ctx, text);
196 ctx->bind_fs_state(ctx, handle);
205 ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
215 ctx->draw_vbo(ctx, &info);
217 ctx->flush(ctx, NULL);
219 graw_save_surface_to_file(ctx, surf, NULL);
250 ctx = screen->context_create(screen, NULL);
251 if (ctx == NULL)
275 surf = ctx->create_surface(ctx, tex, &surf_tmpl);
285 ctx->set_framebuffer_state(ctx, &fb);
292 handle = ctx->create_blend_state(ctx, &blend);
293 ctx->bind_blend_state(ctx, handle);
300 handle = ctx->create_depth_stencil_alpha_state(ctx, &depthstencil);
301 ctx->bind_depth_stencil_alpha_state(ctx, handle);
311 handle = ctx->create_rasterizer_state(ctx, &rasterizer);
312 ctx->bind_rasterizer_state(ctx, handle);