mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Allow a temporary/internal depth buffer to be used when a Canvas is active, similar to how temporary stencil buffers are allowed.
Syntax is setCanvas{canvas [, depth=true, stencil=true]} or setCanvas{canvas, depthstencil=true}.
--HG--
branch : minor
This commit is contained in:
@@ -137,17 +137,12 @@ private:
|
||||
void endPass();
|
||||
void bindCachedFBO(const RenderTargets &targets);
|
||||
void discard(OpenGL::FramebufferTarget target, const std::vector<bool> &colorbuffers, bool depthstencil);
|
||||
love::graphics::Canvas *getCachedStencilBuffer(int w, int h, int samples);
|
||||
|
||||
void setDebug(bool enable);
|
||||
|
||||
std::unordered_map<uint32, GLuint> framebufferObjects;
|
||||
std::vector<love::graphics::Canvas *> stencilBuffers;
|
||||
|
||||
QuadIndices *quadIndices;
|
||||
|
||||
bool windowHasStencil;
|
||||
|
||||
GLuint mainVAO;
|
||||
|
||||
}; // Graphics
|
||||
|
||||
Reference in New Issue
Block a user