Enums shared between gl and drawparams. This module is here to overcome the limitations of Nim imports, which cannot be cyclic.
Types
Facing = enum facingFront, ## target front faces facingBack ## target back faces
- Face targeting mode. The facing is determined from the winding order; if vertices are wound clockwise, the face is interpreted as a facing backwards. If vertices are wound counterclockwise, the face is interpreted as a facing to the front. This setting may be overridden using the frontFace draw parameter. Source Edit
Winding = enum windingCounterclockwise, windingClockwise
- Winding order. Source Edit
Hint = enum hintFragmentShaderDerivative, ## mode for derivative functions in shaders hintLineSmooth, ## line smoothing mode hintPolygonSmooth ## polygon smoothing mode
- Implementation-specific hints. Source Edit
HintValue = enum hvDontCare, ## don't care, the driver can do what it wants hvFastest, ## prefer faster outcome hvNicest ## prefer nicer outcome
- Value for implementation-specific hints. Source Edit
FilteringMode = enum fmNearest, fmLinear, fmNearestMipmapNearest, fmNearestMipmapLinear, fmLinearMipmapNearest, fmLinearMipmapLinear
- Pixel filtering (interpolation) mode. Source Edit
AccessModeBit = enum amRead, amWrite
- Memory access modes. Source Edit
AccessMode = set[AccessModeBit]
- Source Edit
ColorComponent = enum ccZero, ccOne, ccRed, ccGreen, ccBlue, ccAlpha
- A color component, used in texture swizzle masks. Source Edit