Auto-batched draws (except for love.graphics.print, for now) are affected by 3D transforms.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-05-17 22:03:09 -03:00
parent 955fb9b60c
commit 7694edfd52
12 changed files with 174 additions and 79 deletions
+5 -3
View File
@@ -24,7 +24,7 @@
// LOVE
#include "common/Object.h"
#include "common/math.h"
#include "vertex.h"
#include "common/Vector.h"
namespace love
{
@@ -53,14 +53,16 @@ public:
double getTextureWidth() const;
double getTextureHeight() const;
const vertex::XYf_STf *getVertices() const;
const Vector2 *getVertexPositions() const { return vertexPositions; }
const Vector2 *getVertexTexCoords() const { return vertexTexCoords; }
void setLayer(int layer);
int getLayer() const;
private:
vertex::XYf_STf vertices[4];
Vector2 vertexPositions[4];
Vector2 vertexTexCoords[4];
int arrayLayer;