mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Add a new “stencil8” pixel format for Canvases (resolves issue #1003).
Also fixed Canvas MSAA (resolves issue #1271). stencil-formatted Canvases can’t be drawn, and can only be used as the value for a new ‘depthstencil’ field to the table-argument variant of love.graphics.setCanvas. --HG-- branch : minor
This commit is contained in:
@@ -96,6 +96,9 @@ public:
|
||||
GLenum externalformat = 0;
|
||||
GLenum type = 0;
|
||||
|
||||
// For depth/stencil formats.
|
||||
GLenum framebufferAttachments[2];
|
||||
|
||||
bool swizzled = false;
|
||||
GLint swizzle[4];
|
||||
};
|
||||
@@ -379,7 +382,7 @@ public:
|
||||
|
||||
static TextureFormat convertPixelFormat(PixelFormat pixelformat, bool renderbuffer, bool &isSRGB);
|
||||
static bool isTexStorageSupported();
|
||||
static bool isPixelFormatSupported(PixelFormat pixelformat, bool rendertarget, bool isSRGB);
|
||||
static bool isPixelFormatSupported(PixelFormat pixelformat, bool rendertarget, bool readable, bool isSRGB);
|
||||
static bool hasTextureFilteringSupport(PixelFormat pixelformat);
|
||||
|
||||
static const char *errorString(GLenum errorcode);
|
||||
|
||||
Reference in New Issue
Block a user