Home | History | Annotate | Download | only in graw

Lines Matching refs:info

8 static struct graw_info info;
52 handle = info.ctx->create_vertex_elements_state(info.ctx, 2, ve);
53 info.ctx->bind_vertex_elements_state(info.ctx, handle);
58 vbuf.buffer = pipe_buffer_create_with_data(info.ctx,
64 info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf);
81 handle = graw_parse_vertex_shader(info.ctx, text);
82 info.ctx->bind_vs_state(info.ctx, handle);
96 handle = graw_parse_fragment_shader(info.ctx, text);
97 info.ctx->bind_fs_state(info.ctx, handle);
105 info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
106 util_draw_arrays(info.ctx, PIPE_PRIM_TRIANGLES, 0, 3);
107 info.ctx->flush(info.ctx, NULL);
109 graw_save_surface_to_file(info.ctx, info.color_surf[0], NULL);
111 graw_util_flush_front(&info);
117 if (!graw_util_create_window(&info, WIDTH, HEIGHT, 1, FALSE))
120 graw_util_default_state(&info, FALSE);
130 handle = info.ctx->create_rasterizer_state(info.ctx, &rasterizer);
131 info.ctx->bind_rasterizer_state(info.ctx, handle);
135 graw_util_viewport(&info, 0, 0, WIDTH, HEIGHT, 30, 1000);