Reimplement drawing system with vertex buffers.

Now with 10000% more performance.
This commit is contained in:
2017-11-23 14:43:31 +01:00
parent a62075f57d
commit f289b2f52b
9 changed files with 232 additions and 103 deletions

View File

@@ -3,6 +3,7 @@
#include "LayerData.hpp"
#include "utils.hpp"
#include <GL/glut.h>
#include <string_view>
namespace fmri {
/**
@@ -35,9 +36,9 @@ namespace fmri {
void changeWindowSize(int w, int h);
/**
* Set the current drawing color based on some intensity value.
* Draw a bitmap string at the current location.
*
* @param i The intensity.
* @param text The text to draw.
*/
void setColorFromIntensity(float i);
void renderText(std::string_view text);
}