mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Add new non-readable Canvas formats: depth16, depth24, depth32f, depth24stencil8, and depth32fstencil8.
--HG-- branch : minor
This commit is contained in:
@@ -86,6 +86,25 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
struct SupportedFormat
|
||||
{
|
||||
bool readable = false;
|
||||
bool nonreadable = false;
|
||||
|
||||
bool get(bool getreadable)
|
||||
{
|
||||
return getreadable ? readable : nonreadable;
|
||||
}
|
||||
|
||||
void set(bool setreadable, bool val)
|
||||
{
|
||||
if (setreadable)
|
||||
readable = val;
|
||||
else
|
||||
nonreadable = val;
|
||||
}
|
||||
};
|
||||
|
||||
GLuint fbo;
|
||||
|
||||
GLuint texture;
|
||||
@@ -98,8 +117,8 @@ private:
|
||||
|
||||
size_t textureMemory;
|
||||
|
||||
static bool supportedFormats[PIXELFORMAT_MAX_ENUM];
|
||||
static bool checkedFormats[PIXELFORMAT_MAX_ENUM];
|
||||
static SupportedFormat supportedFormats[PIXELFORMAT_MAX_ENUM];
|
||||
static SupportedFormat checkedFormats[PIXELFORMAT_MAX_ENUM];
|
||||
|
||||
}; // Canvas
|
||||
|
||||
|
||||
Reference in New Issue
Block a user