Fixed many casting issues.

This commit is contained in:
2021-08-21 12:18:01 -07:00
parent d660d732b9
commit fabb35b7cf
25 changed files with 133 additions and 212 deletions

View File

@ -14,26 +14,19 @@
#define VN_CHARACTER_BLINK_TIME_RANGE_MAX 6
#define VN_CHARACTER_SIZE 0.5
/** How many quads the VN Character has. Base, Eyes, Mouth and Eyebrows */
#define VN_CHARACTER_QUAD_COUNT 4
typedef struct {
float x, y, z;
float yaw, pitch, roll;
float scaleX, scaleY;
float blinkStart;
char *name;
bool talking;
tileset_t tilesetEyes;
tileset_t tilesetMouth;
texture_t *textureEyes;
texture_t *textureBody;
texture_t *textureMouth;
texture_t *textureFace;
primitive_t primitive;
texture_t *texture;
primitive_t primitiveEyes;
primitive_t primitiveBody;
primitive_t primitiveMouth;
primitive_t primitiveFace;
} vncharacter_t;
int32_t baseWidth, baseHeight;
int32_t faceWidth, faceHeight;
} vncharacter_t;