2021-04-05 11:55:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "mdsprite.h"
|
|
|
|
|
|
|
|
// We still need the relation to mdmodel_t as long as the model code hasn't been redone.
|
|
|
|
struct voxmodel_t : public mdmodel_t
|
|
|
|
{
|
|
|
|
FVoxelModel* model = nullptr;
|
|
|
|
vec3_t siz;
|
2021-12-14 08:58:01 +00:00
|
|
|
FVector3 piv;
|
2021-04-05 11:55:36 +00:00
|
|
|
int32_t is8bit;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern int16_t tiletovox[];
|
|
|
|
extern float voxscale[];
|
|
|
|
extern voxmodel_t* voxmodels[MAXVOXELS];
|
|
|
|
extern FixedBitArray<MAXVOXELS> voxrotate;
|
|
|
|
|
|
|
|
void voxInit();
|
|
|
|
void voxClear();
|
|
|
|
int voxDefine(int voxindex, const char* filename);
|