aboutsummaryrefslogtreecommitdiff
path: root/examples/demos/n00bdemo/smd.h
diff options
context:
space:
mode:
authorspicyjpeg <thatspicyjpeg@gmail.com>2023-06-20 15:13:11 +0200
committerspicyjpeg <thatspicyjpeg@gmail.com>2023-06-20 15:13:11 +0200
commitd23024ceeb8e7f04b0a3bde7a0db41ae5e4fd06d (patch)
tree03342eb22041fb7343c034e376489295e2a78a19 /examples/demos/n00bdemo/smd.h
parent79a966486615e60be3a37d278945dc3dd0fd933b (diff)
downloadpsn00bsdk-d23024ceeb8e7f04b0a3bde7a0db41ae5e4fd06d.tar.gz
Split off libsmd from n00bdemo into separate library
Diffstat (limited to 'examples/demos/n00bdemo/smd.h')
-rw-r--r--examples/demos/n00bdemo/smd.h68
1 files changed, 0 insertions, 68 deletions
diff --git a/examples/demos/n00bdemo/smd.h b/examples/demos/n00bdemo/smd.h
deleted file mode 100644
index 4306534..0000000
--- a/examples/demos/n00bdemo/smd.h
+++ /dev/null
@@ -1,68 +0,0 @@
-#ifndef _SMD_H
-#define _SMD_H
-
-typedef struct {
- u_long *ot;
- short otlen;
- unsigned char zdiv,zoff;
-} SC_OT;
-
-typedef struct {
- char id[3];
- unsigned char version;
- unsigned short flags;
- unsigned short n_verts;
- unsigned short n_norms;
- unsigned short n_prims;
- SVECTOR *p_verts;
- SVECTOR *p_norms;
- void *p_prims;
-} SMD;
-
-typedef struct {
- unsigned char type:2;
- unsigned char l_type:2;
- unsigned char c_type:1;
- unsigned char texture:1;
- unsigned char blend:2;
- unsigned char zoff:4;
- unsigned char nocull:1;
- unsigned char mask:1;
- unsigned char texwin:2;
- unsigned char texoff:2;
- unsigned char reserved:6;
- unsigned char len;
-} SMD_PRI_TYPE;
-
-typedef struct {
- SMD_PRI_TYPE prim_id;
- unsigned short v0,v1,v2,v3; // Vertex indices
- unsigned short n0,n1,n2,n3; // Normal indices
- unsigned char r0,g0,b0,code; // RGB0
- unsigned char r1,g1,b1,p0; // RGB1
- unsigned char r2,g2,b2,p1; // RGB2
- unsigned char r3,g3,b3,p2; // RGB3
- unsigned char tu0,tv0;
- unsigned char tu1,tv1;
- unsigned char tu2,tv2;
- unsigned char tu3,tv3;
- unsigned short tpage,clut;
-} SMD_PRIM;
-
-
-int OpenSMD(void *smd);
-SMD_PRIM *ReadSMD(SMD_PRIM *pri);
-
-void scSetClipRect(int x0, int y0, int x1, int y1);
-
-SMD *smdInitData(void *data);
-void smdSetBaseTPage(unsigned short tpage);
-
-char *smdSortModel(SC_OT *ot, char* pribuff, SMD *smd);
-char *smdSortModelFlat(u_long *ot, char* pribuff, SMD *smd);
-
-void smdSetCelTex(unsigned short tpage, unsigned short clut);
-void smdSetCelParam(int udiv, int vdiv, unsigned int col);
-char *smdSortModelCel(SC_OT *ot, char* pribuff, SMD *smd);
-
-#endif \ No newline at end of file