raze/source/core/rendering/hw_voxels.h

28 lines
500 B
C
Raw Normal View History

#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;
2021-12-14 08:58:01 +00:00
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);