Buckets:
firestryker/ubuntu / LTX2.3-Studio /env /lib /python3.12 /site-packages /OpenGL /GLES2 /NV /fill_rectangle.py
| '''OpenGL extension NV.fill_rectangle | |
| This module customises the behaviour of the | |
| OpenGL.raw.GLES2.NV.fill_rectangle to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| This extension adds a new PolygonMode setting where a triangle is | |
| rasterized by computing and filling its axis-aligned screen-space bounding | |
| box, disregarding the actual triangle edges. This can be useful for | |
| drawing a rectangle without being split into two triangles with an | |
| internal edge. It is also useful to minimize the number of primitives | |
| that need to be drawn, particularly for a user-interface. | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/NV/fill_rectangle.txt | |
| ''' | |
| from OpenGL import platform, constant, arrays | |
| from OpenGL import extensions, wrapper | |
| import ctypes | |
| from OpenGL.raw.GLES2 import _types, _glgets | |
| from OpenGL.raw.GLES2.NV.fill_rectangle import * | |
| from OpenGL.raw.GLES2.NV.fill_rectangle import _EXTENSION_NAME | |
| def glInitFillRectangleNV(): | |
| '''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.2 kB
- Xet hash:
- fbd77c010ebb74a2f055cf37d98cfe2e1ff9342fb12e7e9d725c9579d2eb05fb
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.