mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Faster (and less WTF-ish) computation of current pixel size for line drawing.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user