Changeset View
Changeset View
Standalone View
Standalone View
doc/python_api/rst/bgl.rst
| Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | .. function:: glClipPlane (plane, equation): | ||||
| :type plane: Enumerated constant | :type plane: Enumerated constant | ||||
| :arg plane: Specifies which clipping plane is being positioned. | :arg plane: Specifies which clipping plane is being positioned. | ||||
| :type equation: :class:`bgl.Buffer` object I{type GL_FLOAT}(double) | :type equation: :class:`bgl.Buffer` object I{type GL_FLOAT}(double) | ||||
| :arg equation: Specifies the address of an array of four double- precision | :arg equation: Specifies the address of an array of four double- precision | ||||
| floating-point values. These values are interpreted as a plane equation. | floating-point values. These values are interpreted as a plane equation. | ||||
| .. function:: glColor (red, green, blue, alpha): | |||||
| B{glColor3b, glColor3d, glColor3f, glColor3i, glColor3s, glColor3ub, glColor3ui, glColor3us, | |||||
| glColor4b, glColor4d, glColor4f, glColor4i, glColor4s, glColor4ub, glColor4ui, glColor4us, | |||||
| glColor3bv, glColor3dv, glColor3fv, glColor3iv, glColor3sv, glColor3ubv, glColor3uiv, | |||||
| glColor3usv, glColor4bv, glColor4dv, glColor4fv, glColor4iv, glColor4sv, glColor4ubv, | |||||
| glColor4uiv, glColor4usv} | |||||
| Set a new color. | |||||
| .. seealso:: `OpenGL Docs <https://khronos.org/registry/OpenGL-Refpages/gl4/html/glColor.xhtml>`__ | |||||
| :type red, green, blue, alpha: Depends on function prototype. | |||||
| :arg red, green, blue: Specify new red, green, and blue values for the current color. | |||||
| :arg alpha: Specifies a new alpha value for the current color. Included only in the | |||||
| four-argument glColor4 commands. (With '4' colors only) | |||||
| .. function:: glColorMask(red, green, blue, alpha): | .. function:: glColorMask(red, green, blue, alpha): | ||||
| Enable and disable writing of frame buffer color components | Enable and disable writing of frame buffer color components | ||||
| .. seealso:: `OpenGL Docs <https://khronos.org/registry/OpenGL-Refpages/gl4/html/glColorMask.xhtml>`__ | .. seealso:: `OpenGL Docs <https://khronos.org/registry/OpenGL-Refpages/gl4/html/glColorMask.xhtml>`__ | ||||
| :type red, green, blue, alpha: int (boolean) | :type red, green, blue, alpha: int (boolean) | ||||
| :arg red, green, blue, alpha: Specify whether red, green, blue, and alpha can or cannot be | :arg red, green, blue, alpha: Specify whether red, green, blue, and alpha can or cannot be | ||||
| ▲ Show 20 Lines • Show All 1,375 Lines • Show Last 20 Lines | |||||