Skip to content

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.

ReturnsSignatureSummary
intmode(Primitive primitive) staticReturns LINES or TRIANGLES.
inttype(VertexComponent component) staticReturns the OpenGL type of a vertex component: unsigned byte, byte or float.
intwrap(TextureWrap wrap) staticReturns the OpenGL wrap mode.
intmagFilter(TextureSampling sampling) staticReturns LINEAR or NEAREST, after the filter of the sampling.
intminFilter(TextureSampling sampling) staticReturns LINEAR_MIPMAP_LINEAR for a sampling that reads mipmaps, otherwise the magnification filter.
intequation(BlendState.Equation equation) staticReturns the OpenGL blend equation.
intfactor(BlendState.Factor factor) staticReturns the OpenGL blend factor.
intfunction(StencilFunction function) staticReturns the OpenGL comparison function of the stencil test.
intoperation(StencilOperation operation) staticReturns the OpenGL stencil operation.

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.


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

Report a problem with this page