Faster (and less WTF-ish) computation of current pixel size for line drawing.

This commit is contained in:
vrld
2013-05-10 19:09:17 +02:00
parent 8a5c8c4dc4
commit 13dd8d3199
2 changed files with 15 additions and 9 deletions
+3 -1
View File
@@ -23,7 +23,8 @@
// STD
#include <iostream>
#include <cmath>
#include <stack>
#include <vector>
// OpenGL
#include "OpenGL.h"
@@ -546,6 +547,7 @@ private:
Font *currentFont;
love::window::Window *currentWindow;
std::vector<double> pixel_size_stack; // stores current size of a pixel (needed for line drawing)
LineStyle lineStyle;
float lineWidth;
GLint matrixLimit;