- add PolyTriangleDrawer functions for the operations needed by PolyRenderState

This commit is contained in:
Magnus Norddahl 2019-05-27 07:57:27 +02:00
commit 8db5e72254
6 changed files with 517 additions and 298 deletions

View file

@ -92,8 +92,6 @@ void PolyFrameBuffer::InitializeState()
mRenderState.reset(new PolyRenderState());
CheckCanvas();
PolyTriangleDrawer::SetTransform(GetDrawCommands(), GetFrameMemory()->NewObject<Mat4f>(Mat4f::Identity()), nullptr);
}
void PolyFrameBuffer::CheckCanvas()
@ -149,7 +147,6 @@ void PolyFrameBuffer::Update()
}
CheckCanvas();
PolyTriangleDrawer::SetTransform(GetDrawCommands(), GetFrameMemory()->NewObject<Mat4f>(Mat4f::Identity()), nullptr);
Super::Update();
}