Difference between revisions of "love.graphics.getDepthMode"
(Created page) |
m |
||
Line 1: | Line 1: | ||
− | {{newin|[[ | + | {{newin|[[11.0]]|110|type=function}} |
Gets the current depth test mode and whether writing to the depth buffer is enabled. | Gets the current depth test mode and whether writing to the depth buffer is enabled. | ||
Latest revision as of 20:35, 1 April 2018
Available since LÖVE 11.0 |
This function is not supported in earlier versions. |
Gets the current depth test mode and whether writing to the depth buffer is enabled.
This is low-level functionality designed for use with custom vertex shaders and Meshes with custom vertex attributes. No higher level APIs are provided to set the depth of 2D graphics such as shapes, lines, and Images.
Depth testing and depth writes will have no effect unless the depth field is set to true in a table passed to love.graphics.setCanvas, or a custom Canvas with a depth PixelFormat is set in the depthstencil field in a table passed to setCanvas. |
Function
Synopsis
comparemode, write = love.graphics.getDepthMode( )
Arguments
None.
Returns
CompareMode comparemode
- Depth comparison mode used for depth testing.
boolean write
- Whether to write update / write values to the depth buffer when rendering.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info