aboutsummaryrefslogtreecommitdiff
path: root/src/rlgl.h
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2016-03-17 13:51:48 +0100
committerRay <raysan5@gmail.com>2016-03-17 13:51:48 +0100
commite2ba22ec596757d62f8b22cf8b722d68040f23d3 (patch)
tree28b9e0ddfe60534b167dd659e27c4fa10288d329 /src/rlgl.h
parent49df957058b2f602c7e6873fec0007fcd7a4dc4c (diff)
downloadraylib-e2ba22ec596757d62f8b22cf8b722d68040f23d3.tar.gz
raylib-e2ba22ec596757d62f8b22cf8b722d68040f23d3.zip
Improved 2D-3D drawing
Depth test disabled for 2D and only used on 3D; consequently LINES vs TRIANGLES vs QUADS buffers drawing order maters... but blending also works ok.
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 69640feb..7d50b67a 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -244,6 +244,8 @@ void rlColor4f(float x, float y, float z, float w); // Define one vertex (color)
//------------------------------------------------------------------------------------
void rlEnableTexture(unsigned int id); // Enable texture usage
void rlDisableTexture(void); // Disable texture usage
+void rlEnableDepthTest(void); // Enable depth test
+void rlDisableDepthTest(void); // Disable depth test
void rlDeleteTextures(unsigned int id); // Delete OpenGL texture from GPU
void rlDeleteShader(unsigned int id); // Delete OpenGL shader program from GPU
void rlDeleteVertexArrays(unsigned int id); // Unload vertex data (VAO) from GPU memory