Buckets:
firestryker/ubuntu / LTX2.3-Studio /env /lib /python3.12 /site-packages /OpenGL /GL /EXT /stencil_wrap.py
| '''OpenGL extension EXT.stencil_wrap | |
| This module customises the behaviour of the | |
| OpenGL.raw.GL.EXT.stencil_wrap to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| Various algorithms use the stencil buffer to "count" the number of | |
| surfaces that a ray passes through. As the ray passes into an object, | |
| the stencil buffer is incremented. As the ray passes out of an object, | |
| the stencil buffer is decremented. | |
| GL requires that the stencil increment operation clamps to its maximum | |
| value. For algorithms that depend on the difference between the sum | |
| of the increments and the sum of the decrements, clamping causes an | |
| erroneous result. | |
| This extension provides an enable for both maximum and minimum wrapping | |
| of stencil values. Instead, the stencil value wraps in both directions. | |
| Two additional stencil operations are specified. These new operations | |
| are similiar to the existing INCR and DECR operations, but they wrap | |
| their result instead of saturating it. This functionality matches | |
| the new stencil operations introduced by DirectX 6. | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/EXT/stencil_wrap.txt | |
| ''' | |
| from OpenGL import platform, constant, arrays | |
| from OpenGL import extensions, wrapper | |
| import ctypes | |
| from OpenGL.raw.GL import _types, _glgets | |
| from OpenGL.raw.GL.EXT.stencil_wrap import * | |
| from OpenGL.raw.GL.EXT.stencil_wrap import _EXTENSION_NAME | |
| def glInitStencilWrapEXT(): | |
| '''Return boolean indicating whether this extension is available''' | |
| from OpenGL import extensions | |
| return extensions.hasGLExtension( _EXTENSION_NAME ) | |
| ### END AUTOGENERATED SECTION |
Xet Storage Details
- Size:
- 1.67 kB
- Xet hash:
- 346f7971ead86cd1cba2823f51d21a0b3946c43e9665cc72b6a15deb022a9b6c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.