- clean separation of vertex creation from map data and the buffer object.

This was yet another object with too broad scope, the vertex creation has been offloaded into out-of-class functions now.
This commit is contained in:
Christoph Oelckers 2020-04-26 12:12:07 +02:00
commit c5dca89e66
9 changed files with 279 additions and 294 deletions

View file

@ -81,6 +81,7 @@
#include "xlat/xlat.h"
#include "vm.h"
#include "texturemanager.h"
#include "hwrenderer/data/hw_vertexbuilder.h"
enum
{
@ -3223,7 +3224,7 @@ void MapLoader::LoadLevel(MapData *map, const char *lumpname, int position)
InitRenderInfo(); // create hardware independent renderer resources for the level. This must be done BEFORE the PolyObj Spawn!!!
Level->ClearDynamic3DFloorData(); // CreateVBO must be run on the plain 3D floor data.
screen->mVertexData->CreateVBO(Level->sectors);
CreateVBO(screen->mVertexData, Level->sectors);
for (auto &sec : Level->sectors)
{