GlEnums
final class GlEnums
Package: dev.joid.base.opengl.render · Module: base-opengl · Source: GlEnums.java
Backends: LWJGL 2 LWJGL 3
Converts the render states of JOID to the OpenGL values that the binding takes.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
int | mode(Primitive primitive) static | Returns LINES or TRIANGLES. |
int | type(VertexComponent component) static | Returns the OpenGL type of a vertex component: unsigned byte, byte or float. |
int | wrap(TextureWrap wrap) static | Returns the OpenGL wrap mode. |
int | magFilter(TextureSampling sampling) static | Returns LINEAR or NEAREST, after the filter of the sampling. |
int | minFilter(TextureSampling sampling) static | Returns LINEAR_MIPMAP_LINEAR for a sampling that reads mipmaps, otherwise the magnification filter. |
int | equation(BlendState.Equation equation) static | Returns the OpenGL blend equation. |
int | factor(BlendState.Factor factor) static | Returns the OpenGL blend factor. |
int | function(StencilFunction function) static | Returns the OpenGL comparison function of the stencil test. |
int | operation(StencilOperation operation) static | Returns the OpenGL stencil operation. |
Method details
Section titled “Method details”int mode(Primitive primitive) static
Returns LINES or TRIANGLES.
int type(VertexComponent component) static
Returns the OpenGL type of a vertex component: unsigned byte, byte or float.
int wrap(TextureWrap wrap) static
Returns the OpenGL wrap mode.
magFilter
Section titled “magFilter”int magFilter(TextureSampling sampling) static
Returns LINEAR or NEAREST, after the filter of the sampling.
minFilter
Section titled “minFilter”int minFilter(TextureSampling sampling) static
Returns LINEAR_MIPMAP_LINEAR for a sampling that reads mipmaps, otherwise the magnification filter.
equation
Section titled “equation”int equation(BlendState.Equation equation) static
Returns the OpenGL blend equation.
factor
Section titled “factor”int factor(BlendState.Factor factor) static
Returns the OpenGL blend factor.
function
Section titled “function”int function(StencilFunction function) static
Returns the OpenGL comparison function of the stencil test.
operation
Section titled “operation”int operation(StencilOperation operation) static
Returns the OpenGL stencil operation.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
