20 extern unsigned char *g3d_fbpixels;
21 extern int g3d_width, g3d_height;
22 extern int g3d_curcidx;
24 extern int g3d_bbox[4];
28 void g3d_shutdown(void);
30 void g3d_framebuffer(int width, int height, void *fb);
31 void g3d_framebuf_addr(void *fb);
33 void g3d_clear_dirty(void);
34 void g3d_copy_dirty(void);
36 void g3d_modelview(const int32_t *m);
37 void g3d_projection(const int32_t *m);
39 void g3d_xform(struct g3d_vertex *v, const int32_t *m);
41 void g3d_color(int cidx);
43 void g3d_draw(int prim, struct g3d_vertex *varr, int vcount);
44 void g3d_draw_indexed(int prim, struct g3d_vertex *varr, unsigned short *idxarr,
46 void g3d_draw_prim(int prim, struct g3d_vertex *varr, unsigned short *idxarr);
48 /* defined in polyfill.asm */
49 void g3d_polyfill(struct g3d_vertex *verts);