mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Add new variants of love.graphics.clear for controlling how the depth and stencil buffers are cleared.
- Add love.graphics.clear(r, g, b, a [, stencilvalue, depthvalue]). - Add love.graphics.clear(color1, color2, …, [, stencilvalue, depthvalue]). - Add love.graphics.clear(false, stencilvalue, depthvalue). stencilvalue and depthvalue are either true, false, or a number. True is the default behaviour and clears that buffer to the default value (0 for stencil, 1 for depth), false prevents clearing. The third variant listed above only clears the depth and/or stencil buffers and not the color buffer. --HG-- branch : minor
This commit is contained in:
@@ -1936,6 +1936,7 @@
|
||||
FAF140291E20934C00F898D2 /* ShaderLang.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShaderLang.h; sourceTree = "<group>"; };
|
||||
FAF1403B1E20934C00F898D2 /* InitializeDll.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InitializeDll.cpp; sourceTree = "<group>"; };
|
||||
FAF1403C1E20934C00F898D2 /* InitializeDll.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InitializeDll.h; sourceTree = "<group>"; };
|
||||
FAF1889C1E9DA834008C1479 /* Optional.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Optional.h; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
@@ -2054,6 +2055,7 @@
|
||||
FA0B79071A958E3B000E1D17 /* Module.h */,
|
||||
FA0B79081A958E3B000E1D17 /* Object.cpp */,
|
||||
FA0B79091A958E3B000E1D17 /* Object.h */,
|
||||
FAF1889C1E9DA834008C1479 /* Optional.h */,
|
||||
FA9D8DCF1DEB56C3002CD881 /* pixelformat.cpp */,
|
||||
FA9D8DD01DEB56C3002CD881 /* pixelformat.h */,
|
||||
FA0B790C1A958E3B000E1D17 /* Reference.cpp */,
|
||||
|
||||
Reference in New Issue
Block a user