GLDEPTHMASK(3G) OpenGL Manual GLDEPTHMASK(3G)NAME
glDepthMask - enable or disable writing into the depth buffer
C SPECIFICATION
void glDepthMask(GLboolean flag);
PARAMETERS
flag
Specifies whether the depth buffer is enabled for writing. If flag is GL_FALSE, depth buffer writing is disabled. Otherwise, it is
enabled. Initially, depth buffer writing is enabled.
DESCRIPTION
glDepthMask specifies whether the depth buffer is enabled for writing. If flag is GL_FALSE, depth buffer writing is disabled. Otherwise, it
is enabled. Initially, depth buffer writing is enabled.
ASSOCIATED GETS
glGet() with argument GL_DEPTH_WRITEMASK
NOTES
Even if the depth buffer exists and the depth mask is non-zero, the depth buffer is not updated if the depth test is disabled. In order to
unconditionally write to the depth buffer, the depth test should be enabled and set to GL_ALWAYS (see glDepthFunc()).
SEE ALSO
glColorMask(), glDepthFunc(), glDepthRange(), glStencilMask()
COPYRIGHT
Copyright (C) 1991-2006 Silicon Graphics, Inc. Copyright (C) 2012 Khronos Group. This document is licensed under the SGI Free Software B
License. For details, see http://oss.sgi.com/projects/FreeB/.
AUTHORS
opengl.org
opengl.org 06/10/2014 GLDEPTHMASK(3G)
Check Out this Related Man Page
GLDEPTHFUNC(3G)GLDEPTHFUNC(3G)NAME
glDepthFunc - specify the value used for depth buffer comparisons
C SPECIFICATION
void glDepthFunc( GLenum func )
PARAMETERS
func Specifies the depth comparison function. Symbolic constants GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL,
GL_GEQUAL, and GL_ALWAYS are accepted. The initial value is GL_LESS.
DESCRIPTION
glDepthFunc specifies the function used to compare each incoming pixel depth value with the depth value present in the depth buffer. The
comparison is performed only if depth testing is enabled. (See glEnable and glDisable of GL_DEPTH_TEST.)
func specifies the conditions under which the pixel will be drawn. The comparison functions are as follows:
GL_NEVER Never passes.
GL_LESS Passes if the incoming depth value is less than the stored depth value.
GL_EQUAL Passes if the incoming depth value is equal to the stored depth value.
GL_LEQUAL Passes if the incoming depth value is less than or equal to the stored depth value.
GL_GREATER Passes if the incoming depth value is greater than the stored depth value.
GL_NOTEQUAL Passes if the incoming depth value is not equal to the stored depth value.
GL_GEQUAL Passes if the incoming depth value is greater than or equal to the stored depth value.
GL_ALWAYS Always passes.
The initial value of func is GL_LESS. Initially, depth testing is disabled. Even if the depth buffer exists and the depth mask is non-
zero, the depth buffer is not updated if the depth test is disabled.
ERRORS
GL_INVALID_ENUM is generated if func is not an accepted value.
GL_INVALID_OPERATION is generated if glDepthFunc is executed between the execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGet with argument GL_DEPTH_FUNC
glIsEnabled with argument GL_DEPTH_TEST
SEE ALSO glDepthRange(3G), glEnable(3G), glPolygonOffset(3G)GLDEPTHFUNC(3G)
I am on a fedora core 2.6.9-1.677 i686
which is selinux enabled unlike the version I was on before .. which had to be manually enabled ..and if you knew nothing of the sort you were lost.. that was the case for me anyway! like i was saying ... now I am on a system that is enabled I have just... (1 Reply)
Hi All,
I am writing some data's into a file from C++ program. The files which i am writing is of fixed length . say 232 in length per line.
I am writing as . my c code is as
... (0 Replies)
Hi,
I am doing the following but it complains and says "for:badly formed number"
does anyone know why?
#!/bin/tcsh
foreach(....)
............
set depth=64
set width=23
if ($depth==64) then
echo "if"
set addr_bits=5
else
echo "else"
endif
echo "addr_bits:$addr_bits"
echo... (3 Replies)
Helo ,
I m writing small module of c.on RHEL 4
I have one buffer (for e.g. buffer = "002"
now I want to check whethere buffer contains leading zeroes and if it contains
leading zeroes then I want to remove all leading zeroes
( i.e. if buffer = "002" then I want to make buffer = "2")
how... (1 Reply)
Apart from writing debug and statements in constructors is there any way by which we can trace the function call stack at any depth?
The issue that we always face is that when program crashes (Web Server running on Linux) we have no idea where it crashes and we have to do the hard way of... (1 Reply)
Hi, I have an issue with the file writing...
It is, Suppose that if I am writing some data to a file... and at the same time another user has opened the file and want to write in to the file(writing to the file at the same time)...the another has to know that someone has opened the file, mean... (3 Replies)
Hi,
I need to conver the date format to binary and then subract it by one which will result me an output with yesterdays date and use it..
So that i will use the out and delete all the folders which are of minus one days.i.e if today is 2010-03-18 (this is a folder format at some xyz location).... (59 Replies)
I am an undergraduate in Anthropology, currently writing my final year dissertation. The subject I have chosen in the Open Source project. I will be writing a detailed ethnography of hacker culture and am searching for research participants. Particularly, I am looking for Open Source user groups... (5 Replies)
I was looking at a code and stumbled over the option -depth of find command
After searching what -depth does I found the below:
-depth Process each directory's contents before the directory itself.
Does it mean the sub directories are processed before the current directory in the search... (1 Reply)