Lines Matching full:info

17 static struct graw_info info;  variable
91 handle = info.ctx->create_vertex_elements_state(info.ctx, 2, ve); in set_vertices()
92 info.ctx->bind_vertex_elements_state(info.ctx, handle); in set_vertices()
97 vbuf.buffer = pipe_buffer_create_with_data(info.ctx, in set_vertices()
103 info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf); in set_vertices()
108 set_vertex_shader(struct graw_info *info) in set_vertex_shader() argument
121 handle = graw_parse_vertex_shader(info->ctx, text); in set_vertex_shader()
126 info->ctx->bind_vs_state(info->ctx, handle); in set_vertex_shader()
131 set_fragment_shader(struct graw_info *info) in set_fragment_shader() argument
141 handle = graw_parse_fragment_shader(info->ctx, text); in set_fragment_shader()
146 info->ctx->bind_fs_state(info->ctx, handle); in set_fragment_shader()
168 info.ctx->clear(info.ctx, in draw()
172 q1 = info.ctx->create_query(info.ctx, PIPE_QUERY_OCCLUSION_COUNTER); in draw()
173 q2 = info.ctx->create_query(info.ctx, PIPE_QUERY_OCCLUSION_COUNTER); in draw()
177 info.ctx->begin_query(info.ctx, q1); in draw()
178 util_draw_arrays(info.ctx, PIPE_PRIM_QUADS, 0, NUM_VERTS); in draw()
179 info.ctx->end_query(info.ctx, q1); in draw()
183 info.ctx->begin_query(info.ctx, q2); in draw()
184 util_draw_arrays(info.ctx, PIPE_PRIM_QUADS, 0, NUM_VERTS); in draw()
185 info.ctx->end_query(info.ctx, q2); in draw()
187 info.ctx->get_query_result(info.ctx, q1, TRUE, &res1); in draw()
188 info.ctx->get_query_result(info.ctx, q2, TRUE, &res2); in draw()
196 info.ctx->flush(info.ctx, NULL); in draw()
198 graw_util_flush_front(&info); in draw()
200 info.ctx->destroy_query(info.ctx, q1); in draw()
201 info.ctx->destroy_query(info.ctx, q2); in draw()
212 graw_util_viewport(&info, 0, 0, width, height, 30, 1000);
220 if (!graw_util_create_window(&info, width, height, 1, TRUE)) in init()
223 graw_util_default_state(&info, TRUE); in init()
225 graw_util_viewport(&info, 0, 0, width, height, -1.0, 1.0); in init()
227 set_vertex_shader(&info); in init()
228 set_fragment_shader(&info); in init()