- implemented the 2D drawer for the hardware renderer. Not tested yet.

This commit is contained in:
Christoph Oelckers 2018-03-28 21:38:00 +02:00
commit 70b6754299
14 changed files with 231 additions and 25 deletions

View file

@ -473,3 +473,15 @@ void OpenGLFrameBuffer::ScaleCoordsFromWindow(int16_t &x, int16_t &y)
x = int16_t((x - letterboxX) * Width / letterboxWidth);
y = int16_t((y - letterboxY) * Height / letterboxHeight);
}
//===========================================================================
//
// 2D drawing
//
//===========================================================================
void OpenGLFrameBuffer::Draw2D()
{
//if (gl.legacyMode) Draw2DLegacy();
if (GLRenderer != nullptr) GLRenderer->Draw2D(&m2DDrawer);
}