X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fxgl.h;h=00c8efdbf957d15bf8f227130239f36d112d2f02;hb=53c0ee3332822465be7dcf923ca3c6445076b555;hp=eba42b54e1cd515f0830a73da86dbb8c817c5a08;hpb=f57fab6afe62f2a476ef4afa1842c81722816451;p=gbajam22 diff --git a/src/xgl.h b/src/xgl.h index eba42b5..00c8efd 100644 --- a/src/xgl.h +++ b/src/xgl.h @@ -1,6 +1,6 @@ /* -blender for the Gameboy Advance -Copyright (C) 2021 John Tsiombikas +gbajam22 entry for the Gameboy Advance +Copyright (C) 2022 John Tsiombikas This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,6 +18,8 @@ along with this program. If not, see . #ifndef XGL_H_ #define XGL_H_ +#include + #define X_PI 0x3243f #define X_2PI 0x6487f #define X_HPI 0x19220 @@ -37,7 +39,8 @@ enum { struct xvertex { int32_t x, y, z; int32_t nx, ny, nz; - unsigned char cidx; + int32_t tx, ty; + int32_t lit; }; void xgl_init(void); @@ -63,6 +66,10 @@ void xgl_scale(int32_t x, int32_t y, int32_t z); void xgl_draw(int prim, const struct xvertex *varr, int vcount); void xgl_transform(const struct xvertex *vin, int *x, int *y); +void xgl_index(int c); + void xgl_xyzzy(void); +int xgl_clip_near(struct xvertex *vout, int *voutnum, struct xvertex *vin, int vnum); + #endif /* XGL_H_ */