mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
Add optional ‘readable’ boolean field to the table passed into love.graphics.newCanvas. Added new variant of love.graphics.getCanvasFormats which takes a ‘readable’ boolean.
--HG-- branch : minor
This commit is contained in:
@@ -39,6 +39,13 @@ public:
|
||||
|
||||
struct Settings
|
||||
{
|
||||
// Defaults to true for color pixel formats, and false for depth/stencil.
|
||||
struct Readable
|
||||
{
|
||||
bool set = false;
|
||||
bool value = false;
|
||||
};
|
||||
|
||||
int width = 1;
|
||||
int height = 1;
|
||||
int layers = 1; // depth for 3D textures
|
||||
@@ -46,6 +53,7 @@ public:
|
||||
TextureType type = TEXTURE_2D;
|
||||
float pixeldensity = 1.0f;
|
||||
int msaa = 0;
|
||||
Readable readable;
|
||||
};
|
||||
|
||||
Canvas(TextureType textype);
|
||||
|
||||
Reference in New Issue
Block a user