mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
c34756e5f2
The voxreserve array was never properly set up so it is gone now. nextvoxid now gets set right before loading .def files.
27 lines
500 B
C++
27 lines
500 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "model.h"
|
|
#include "model_kvx.h"
|
|
#include "intvec.h"
|
|
|
|
constexpr int MAXVOXELS = 1024;
|
|
|
|
struct voxmodel_t // : public mdmodel_t
|
|
{
|
|
FVoxelModel* model = nullptr;
|
|
float scale, bscale, zadd, yoffset;
|
|
vec3_t siz;
|
|
FVector3 piv;
|
|
int32_t is8bit;
|
|
};
|
|
|
|
|
|
|
|
extern float voxscale[];
|
|
extern voxmodel_t* voxmodels[MAXVOXELS];
|
|
extern FixedBitArray<MAXVOXELS> voxrotate;
|
|
|
|
void voxInit();
|
|
void voxClear();
|
|
int voxDefine(int voxindex, const char* filename);
|