Move levelmeshhelper completely out of the Common folder

Connect the level updates to the level mesh
This commit is contained in:
Magnus Norddahl 2024-08-11 18:34:03 +02:00
commit e0cba77646
7 changed files with 78 additions and 23 deletions

View file

@ -1,29 +1,8 @@
#include "levelmeshhelper.h"
#include "hw_meshbuilder.h"
#include "hw_mesh.h"
#include "v_video.h"
struct NullLevelMeshUpdater : UpdateLevelMesh
{
virtual void FloorHeightChanged(struct sector_t *sector) {};
virtual void CeilingHeightChanged(struct sector_t *sector) {};
virtual void MidTex3DHeightChanged(struct sector_t *sector) {};
virtual void FloorTextureChanged(struct sector_t *sector) {};
virtual void CeilingTextureChanged(struct sector_t *sector) {};
virtual void SectorChangedOther(struct sector_t *sector) {};
virtual void SideTextureChanged(struct side_t *side, int section) {};
};
static NullLevelMeshUpdater nullUpdater;
UpdateLevelMesh* LevelMeshUpdater = &nullUpdater;
MeshBuilder::MeshBuilder()
{
Reset();