Character is rendering in-game

This commit is contained in:
2021-08-22 23:30:53 -07:00
parent fabb35b7cf
commit 87e7f599a6
20 changed files with 284 additions and 161 deletions

View File

@ -17,16 +17,23 @@
/** How many quads the VN Character has. Base, Eyes, Mouth and Eyebrows */
#define VN_CHARACTER_QUAD_COUNT 4
#define VN_CHARACTER_QUAD_BASE 0
#define VN_CHARACTER_QUAD_EYEBROWS 1
#define VN_CHARACTER_QUAD_EYES 2
#define VN_CHARACTER_QUAD_MOUTH 3
typedef struct {
float x, y, z;
float yaw, pitch, roll;
float scaleX, scaleY;
bool talking;
float blinkStart;
primitive_t primitive;
texture_t *texture;
int32_t baseWidth, baseHeight;
int32_t faceX, faceY;
int32_t faceWidth, faceHeight;
} vncharacter_t;