summaryrefslogtreecommitdiff
path: root/agbx/include/ax/gfx.h
blob: b3830d613869d29c268f87653061b719aae5b664 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
	Copyright 2022 Gabriel Jensen.
	This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
	If a copy of the MPL was not distributed with this file, You can obtain one at <https://mozilla.org/MPL/2.0>.
*/

#if !defined(__ax_hdr_gfx)
#define __ax_hdr_gfx

#include <ax/bs.h>

ax_i02 ax_flip(   void);
ax_i02 ax_getvbnk(void);
void   ax_vsync(  void);

void ax_setpx1(ax_i02 vaddr,ax_i01 px,ax_i8  col);
void ax_setpx2(ax_i02 vaddr,ax_i01 px,ax_i01 col);

ax_i8  ax_getpx1(ax_i02 vaddr,ax_i01 px);
ax_i01 ax_getpx2(ax_i02 vaddr,ax_i01 px);

void ax_clrscrn3(ax_i01 col);
void ax_clrscrn4(ax_i02 vaddr,ax_i8  col);
void ax_clrscrn5(ax_i02 vaddr,ax_i01 col);

void ax_plot3(ax_i8  x,    ax_i8 y,ax_i01 col);
void ax_plot4(ax_i02 vaddr,ax_i8 x,ax_i8  y,  ax_i8  col);
void ax_plot5(ax_i02 vaddr,ax_i8 x,ax_i8  y,  ax_i01 col);

void ax_plottex3(ax_i01 const * tex,  ax_i8          x,  ax_i8 y,ax_i8 w,ax_i8 h);
void ax_plottex4(ax_i02         vaddr,ax_i8 const *  tex,ax_i8 x,ax_i8 y,ax_i8 w,ax_i8 h);
void ax_plottex5(ax_i02         vaddr,ax_i01 const * tex,ax_i8 x,ax_i8 y,ax_i8 w,ax_i8 h);

ax_i01 ax_rd3(ax_i8  x,    ax_i8 y);
ax_i8  ax_rd4(ax_i02 vaddr,ax_i8 x,ax_i8 y);
ax_i01 ax_rd5(ax_i02 vaddr,ax_i8 x,ax_i8 y);

void ax_cir3(ax_i8  x,    ax_i8 y,ax_i8 r);
void ax_cir4(ax_i02 vaddr,ax_i8 x,ax_i8 y,ax_i8 r);
void ax_cir5(ax_i02 vaddr,ax_i8 x,ax_i8 y,ax_i8 r);

#endif