7 void init_census(void *pixels, int xsz, int ysz)
14 g3d_framebuffer(xsz, ysz, fb_pixels);
15 g3d_polygon_mode(G3D_FLAT);
16 g3d_viewport(0, 0, xsz, ysz);
19 void draw_census(void)
22 memset(fb_pixels, 0, fb_width * fb_height * 4);
24 g3d_matrix_mode(G3D_MODELVIEW);
27 g3d_enable(G3D_BLEND);
29 g3d_color4b(64, 128, 255, 255);
32 g3d_vertex(-0.4, -0.5, 0);
33 g3d_vertex(0.6, -0.2, 0);
34 g3d_vertex(0, 0.8, 0);
35 g3d_vertex(-0.5, 0.6, 0);
38 g3d_translate(0.2, -0.2, 0);
39 g3d_color4b(255, 32, 255, 128);
42 g3d_disable(G3D_BLEND);