- cleaned up the dependencies in the model rendering code and separated it into game-independent and game-dependent parts.

This commit is contained in:
Christoph Oelckers 2020-04-26 13:19:57 +02:00
commit 5611fe0f41
12 changed files with 197 additions and 148 deletions

View file

@ -398,7 +398,7 @@ float FVoxelModel::getAspectFactor(FLevelLocals *Level)
void FVoxelModel::RenderFrame(FModelRenderer *renderer, FGameTexture * skin, int frame, int frame2, double inter, int translation)
{
renderer->SetMaterial(skin, true, translation);
GetVertexBuffer(renderer)->SetupFrame(renderer, 0, 0, 0);
renderer->SetupFrame(this, 0, 0, 0);
renderer->DrawElements(mNumIndices, 0);
}