4 #include <bz/math/matrix.h>
5 #include <bz/renderer/render_pass.h>
6 #include <bz/types/common.h>
7 #include <bz/types/rect.h>
13 //typedef struct BZCanvas BZCanvas;
14 //typedef BZCanvas * BZCanvasID;
16 //static const int kBZGfxCanvasWidth = 256;
17 //static const int kBZGfxCanvasHeight = 128;
19 extern BZRenderPassID bzGFXRenderPass
;
21 typedef float BZCoordinate
;
22 typedef uint8_t BZPaletteColor
;
23 typedef uint16_t BZPattern
;
25 //extern BZRect bzCalculateCullRect(void);
27 //extern void bzClip(int x, int y, int w, int h);
29 extern void bzPSet(BZCoordinate x
, BZCoordinate y
, BZPaletteColor c
);
31 extern BZPaletteColor
bzSGet(int x
, int y
);
32 //extern void bzSSet(int x, int y, int c);
34 //extern bool bzFGet(int n, int f);
35 //extern void bzFSet(int n, int f, bool v);
37 extern void bzCls(BZPaletteColor c
);
39 extern void bzGetCamera(BZCoordinate
*x
, BZCoordinate
*y
);
40 extern void bzCamera(BZCoordinate x
, BZCoordinate y
);
42 extern void bzCirc(BZCoordinate x
, BZCoordinate y
, BZCoordinate r
, BZPaletteColor c
);
43 extern void bzCircFill(BZCoordinate x
, BZCoordinate y
, BZCoordinate r
, BZPaletteColor c
);
45 //extern void bzOval(int x0, int y0, int x1, int y1, int c);
46 //extern void bzOvalFill(int x0, int y0, int x1, int y1, int c);
48 extern void bzLine(BZCoordinate x0
, BZCoordinate y0
, BZCoordinate x1
, BZCoordinate y1
, BZPaletteColor c
);
50 extern void bzRect(BZCoordinate x0
, BZCoordinate y0
, BZCoordinate x1
, BZCoordinate y1
, BZPaletteColor c
);
51 extern void bzRectFill(BZCoordinate x0
, BZCoordinate y0
, BZCoordinate x1
, BZCoordinate y1
, BZPaletteColor c
);
53 extern void bzTriangle(BZCoordinate x0
, BZCoordinate y0
, BZCoordinate x1
, BZCoordinate y1
, BZCoordinate x2
, BZCoordinate y2
, BZPaletteColor c
);
55 extern void bzSpr(size_t n
, BZCoordinate x
, BZCoordinate y
);
56 extern void bzSprExt(size_t n
, BZCoordinate x
, BZCoordinate y
, BZCoordinate w
, BZCoordinate h
, bool flipX
, bool flipY
);
58 extern void bzSSpr(BZCoordinate sx
, BZCoordinate sy
, BZCoordinate sw
, BZCoordinate sh
, BZCoordinate dx
, BZCoordinate dy
);
59 extern void bzSSprExt(BZCoordinate sx
, BZCoordinate sy
, BZCoordinate sw
, BZCoordinate sh
, BZCoordinate dx
, BZCoordinate dy
, BZCoordinate dw
, BZCoordinate dh
, bool flipX
, bool flipY
);
61 extern void bzPrint(BZCoordinate x
, BZCoordinate y
, BZPaletteColor color
, const char *text
);
63 extern void bzFillP(BZPattern p
);
65 extern void bzSetPaletteColor(size_t palette
, BZPaletteColor colorIdx
, BZPaletteColor color
);
67 extern void bzSetGlobalViewMatrix(const BZMatrix
*mtx
);
68 //extern void bzSetGlobalLocalMatrix(const BZMatrix *mtx);
69 //extern void bzSetGlobalBlendColor(BZPaletteColor color);
71 extern void bzSetOutputBuffer(size_t idx
);