GLBEGINCONDITIONALRE - Online Linux Manual PageSection : 3G
Updated : 01/20/2022
Source : [FIXME: source]
Note : [FIXME: manual]

NAMEglBeginConditionalRender − start conditional rendering

C SPECIFICATIONvoid glBeginConditionalRender(GLuint id, GLenum mode); void glEndConditionalRender(void);

PARAMETERS FOR GLBEGINCONDITIONALRENDERid Specifies the name of an occlusion query object whose results are used to determine if the rendering commands are discarded​. mode Specifies how glBeginConditionalRender interprets the results of the occlusion query​.

DESCRIPTIONConditional rendering is started using glBeginConditionalRender and ended using glEndConditionalRender​. During conditional rendering, all vertex array commands, as well as glClear() and glClearBuffer() have no effect if the (GL_SAMPLES_PASSED) result of the query object id is zero, or if the (GL_ANY_SAMPLES_PASSED) result is GL_FALSE​. The results of commands setting the current vertex state, such as glVertexAttrib() are undefined​. If the (GL_SAMPLES_PASSED) result is non−zero or if the (GL_ANY_SAMPLES_PASSED) result is GL_TRUE, such commands are not discarded​. The id parameter to glBeginConditionalRender must be the name of a query object previously returned from a call to glGenQueries()​. mode specifies how the results of the query object are to be interpreted​. If mode is GL_QUERY_WAIT, the GL waits for the results of the query to be available and then uses the results to determine if subsequent rendering commands are discarded​. If mode is GL_QUERY_NO_WAIT, the GL may choose to unconditionally execute the subsequent rendering commands without waiting for the query to complete​. If mode is GL_QUERY_BY_REGION_WAIT, the GL will also wait for occlusion query results and discard rendering commands if the result of the occlusion query is zero​. If the query result is non−zero, subsequent rendering commands are executed, but the GL may discard the results of the commands for any region of the framebuffer that did not contribute to the sample count in the specified occlusion query​. Any such discarding is done in an implementation−dependent manner, but the rendering command results may not be discarded for any samples that contributed to the occlusion query sample count​. If mode is GL_QUERY_BY_REGION_NO_WAIT, the GL operates as in GL_QUERY_BY_REGION_WAIT, but may choose to unconditionally execute the subsequent rendering commands without waiting for the query to complete​.

NOTESglBeginConditionalRender and glEndConditionalRender are available only if the GL version is 3​.0 or greater​. The GL_ANY_SAMPLES_PASSED query result is available only if the GL version is 3​.3 or greater​.

ERRORSGL_INVALID_VALUE is generated if id is not the name of an existing query object​. GL_INVALID_ENUM is generated if mode is not one of the accepted tokens​. GL_INVALID_OPERATION is generated if glBeginConditionalRender is called while conditional rendering is active, or if glEndConditionalRender is called while conditional rendering is inactive​. GL_INVALID_OPERATION is generated if id is the name of a query object with a target other than GL_SAMPLES_PASSED or GL_ANY_SAMPLES_PASSED​. GL_INVALID_OPERATION is generated if id is the name of a query currently in progress​.

VERSION SUPPORT OpenGL Version Function / Feature Name 2​.0 none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'> 2​.1 3​.0 3​.1 3​.2 3​.3 4​.0 4​.1 4​.2 4​.3 4​.4 4​.5 glBeginConditionalRender glEndConditionalRender

SEE ALSOglGenQueries(), glDeleteQueries(), glBeginQuery()

COPYRIGHTCopyright © 2010−2014 Khronos Group​. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1​.0, 8 June 1999​. http://opencontent​.org/openpub/​.

COPYRIGHT
Copyright © 2010-2014 Khronos Group
0
Johanes Gumabo
Data Size   :   20,932 byte
man-glBeginConditionalRender.3GBuild   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 261,767
Visitor ID   :     :  
Visitor IP   :   3.14.131.240   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.