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:
Alex Szpakowski
2017-06-10 14:25:22 -03:00
parent 30a63b6642
commit 9fe81ad922
6 changed files with 88 additions and 61 deletions
-5
View File
@@ -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