2021-06-23 19:25:12 +02:00
|
|
|
#pragma once
|
|
|
|
#include "../include/camera.h"
|
|
|
|
#include "../include/physics.h"
|
|
|
|
#include "../include/defines.h"
|
|
|
|
|
|
|
|
// Drawing
|
|
|
|
void transformMesh(CAMERA * camera, MESH * meshes);
|
2021-06-28 17:45:18 +02:00
|
|
|
void enlightMesh(LEVEL * curLvl, MESH * actorPtr, SVECTOR * lgtang);
|
2021-06-23 19:25:12 +02:00
|
|
|
void drawPoly(MESH * mesh, long * Flag, int atime, int * camMode, char ** nextpri, u_long * ot, char * db, DRAWENV * draw);
|
2021-06-25 17:01:35 +02:00
|
|
|
// Tri drawing
|
2021-06-29 16:30:44 +02:00
|
|
|
long drawTri(MESH * mesh, long * Flag, int atime, int * camMode, char ** nextpri, u_long * ot, char * db, DRAWENV * draw, int t, int i);
|
2021-06-25 17:01:35 +02:00
|
|
|
void set3VertexLerPos(MESH * mesh, long t);
|
2021-07-02 14:49:47 +02:00
|
|
|
void set3Prism(POLY_GT3 * poly, MESH * mesh, DRAWENV * draw, char * db, int i);
|
2021-06-25 17:01:35 +02:00
|
|
|
void set3Tex(POLY_GT3 * poly, MESH * mesh, DRAWENV * draw, long t, int i);
|
|
|
|
long interpolateTri(POLY_GT3 * poly, MESH * mesh, long t, long * Flag);
|
|
|
|
//Quad drawing
|
2021-06-29 16:30:44 +02:00
|
|
|
long drawQuad(MESH * mesh, long * Flag, int atime, int * camMode, char ** nextpri, u_long * ot, char * db, DRAWENV * draw, int t, int i);
|
2021-06-25 17:01:35 +02:00
|
|
|
void set4VertexLerPos(MESH * mesh, long t);
|
2021-07-02 14:49:47 +02:00
|
|
|
void set4Prism(POLY_GT4 * poly4, MESH * mesh, DRAWENV * draw, char * db, int i);
|
2021-06-25 17:01:35 +02:00
|
|
|
void set4Tex(POLY_GT4 * poly4, MESH * mesh, DRAWENV * draw, long t, int i);
|
|
|
|
long interpolateQuad(POLY_GT4 * poly4, MESH * mesh, long t, long * Flag);
|
|
|
|
//2D drawing
|
2021-06-23 19:25:12 +02:00
|
|
|
void drawBG(CAMANGLE * camPtr, char ** nextpri, u_long * otdisc, char * db);
|