]>
git.bts.cx Git - benzene.git/blob - src/bz/gfx/drawing.h
1 #ifndef BZ_GFX_DRAWING_H
2 #define BZ_GFX_DRAWING_H
4 #include <bz/gfx/draw_queue.h>
5 #include <bz/game/tilemap.h>
6 #include <bz/math/matrix.h>
7 #include <bz/types/common.h>
8 #include <bz/types/identifier.h>
14 //extern void bzDrawClip(BZDrawQueueID drawQueue, uint8_t sortIdx, int x, int y, int w, int h);
16 extern void bzDrawPSet(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, float x
, float y
, int c
);
18 //extern bool bzFGet(int n, int f);
19 //extern void bzFSet(int n, int f, bool v);
21 extern void bzDrawCls(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, uint8_t c
);
23 extern void bzDrawCamera(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, float x
, float y
);
25 extern void bzDrawCirc(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, int x
, int y
, int r
, int c
);
26 extern void bzDrawCircFill(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, int x
, int y
, int r
, int c
);
28 //extern void bzDrawOval(BZDrawQueueID drawQueue, uint8_t sortIdx, const BZMatrix *mtx, int x0, int y0, int x1, int y1, int c);
29 //extern void bzDrawOvalFill(BZDrawQueueID drawQueue, uint8_t sortIdx, const BZMatrix *mtx, int x0, int y0, int x1, int y1, int c);
31 extern void bzDrawLine(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, int x0
, int y0
, int x1
, int y1
, int c
);
33 extern void bzDrawRect(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, int x0
, int y0
, int x1
, int y1
, int c
);
34 extern void bzDrawRectFill(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, int x0
, int y0
, int x1
, int y1
, int c
);
36 extern void bzDrawTriangle(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, int x0
, int y0
, int x1
, int y1
, int x2
, int y2
, int c
);
38 extern void bzDrawSpr(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, int n
, int x
, int y
);
39 extern void bzDrawSprExt(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, int n
, int x
, int y
, int w
, int h
, bool flipX
, bool flipY
);
41 extern void bzDrawSSpr(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, int sx
, int sy
, int sw
, int sh
, int dx
, int dy
);
42 extern void bzDrawSSprExt(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, int sx
, int sy
, int sw
, int sh
, int dx
, int dy
, int dw
, int dh
, bool flipX
, bool flipY
);
44 extern void bzDrawPrint(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, int x
, int y
, int color
, const char *text
);
46 extern void bzDrawFillP(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, uint16_t p
);
48 extern void bzDrawSetPaletteColor(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, int palette
, int colorIdx
, int color
);
50 extern void bzDrawSetOutputBuffer(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, int idx
);
52 extern void bzDrawMap(BZDrawQueueID drawQueue
, uint8_t sortIdx
, const BZMatrix
*mtx
, BZTilemapID tilemap
, int tx
, int ty
, int x
, int y
, int mw
, int mh
, BZIdentifierHash tag
);