Move all rendering logic to a single RenderingState.

This commit is contained in:
2018-03-29 12:34:39 +02:00
parent e8f627182f
commit 1c872c9969
4 changed files with 162 additions and 164 deletions

View File

@@ -32,6 +32,9 @@ namespace fmri {
/**
* Draw a bitmap string at the current location.
*
* This function wraps glutBitmapCharacter, because its nicer version
* (glutBitmapString) is an extension that is possibly unavailable.
*
* @param text The text to draw.
*/
void renderText(std::string_view text, int x = 0, int y = 0);