Home | History | Annotate | Download | only in graw

Lines Matching refs:info

10 static struct graw_info info;
53 handle = info.ctx->create_vertex_elements_state(info.ctx, 2, ve);
54 info.ctx->bind_vertex_elements_state(info.ctx, handle);
60 vbuf.buffer = pipe_buffer_create_with_data(info.ctx,
66 info.ctx->set_vertex_buffers(info.ctx, 0, 1, &vbuf);
82 handle = graw_parse_vertex_shader(info.ctx, text);
83 info.ctx->bind_vs_state(info.ctx, handle);
100 handle = graw_parse_fragment_shader(info.ctx, text);
101 info.ctx->bind_fs_state(info.ctx, handle);
109 info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
110 util_draw_arrays(info.ctx, PIPE_PRIM_QUADS, 0, 4);
111 info.ctx->flush(info.ctx, NULL, 0);
113 graw_save_surface_to_file(info.ctx, info.color_surf[0], NULL);
115 graw_util_flush_front(&info);
167 texture = graw_util_create_tex2d(&info, SIZE, SIZE,
170 sv = graw_util_create_simple_sampler_view(&info, texture);
171 info.ctx->set_sampler_views(info.ctx, PIPE_SHADER_FRAGMENT, 0, 1, &sv);
173 sampler = graw_util_create_simple_sampler(&info,
176 info.ctx->bind_sampler_states(info.ctx, PIPE_SHADER_FRAGMENT,
183 if (!graw_util_create_window(&info, WIDTH, HEIGHT, 1, FALSE))
186 graw_util_default_state(&info, FALSE);
196 handle = info.ctx->create_rasterizer_state(info.ctx, &rasterizer);
197 info.ctx->bind_rasterizer_state(info.ctx, handle);
200 graw_util_viewport(&info, 0, 0, WIDTH, HEIGHT, 30, 1000);