mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Array textures can be easily drawn without a shader (resolves issue #1111).
Added love.graphics.drawLayer(texture, layerindex, …). ‘texture’ must be an array texture. Added SpriteBatch:add/setLayer. Added Quad:get/setLayer. This applies to array textures that are drawn without specifying an explicit layer index in the draw call. Added love.graphics.newQuad variants which have layer arguments. --HG-- branch : minor
This commit is contained in:
@@ -53,11 +53,16 @@ public:
|
||||
double getTextureWidth() const;
|
||||
double getTextureHeight() const;
|
||||
|
||||
const Vertex *getVertices() const;
|
||||
const vertex::XYf_STf *getVertices() const;
|
||||
|
||||
void setLayer(int layer);
|
||||
int getLayer() const;
|
||||
|
||||
private:
|
||||
|
||||
Vertex vertices[4];
|
||||
vertex::XYf_STf vertices[4];
|
||||
|
||||
int arrayLayer;
|
||||
|
||||
Viewport viewport;
|
||||
double sw;
|
||||
|
||||
Reference in New Issue
Block a user