Lwjgl3GlBinding
final class Lwjgl3GlBinding
Implements: IGlBinding
Package: dev.joid.base.lwjgl3.opengl · Module: base-lwjgl3-opengl · Source: Lwjgl3GlBinding.java
Backends: LWJGL 3
The OpenGL binding of LWJGL 3, which calls the classes GL11 to GL33, which LWJGL 3.1 and every later version hold.
Description
Section titled “Description”The LWJGL 3 backend gives it to GlRenderBridge, and so does a host that runs on the OpenGL of LWJGL 3.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
Lwjgl3GlBinding | inst() factory | Returns the only instance. |
Methods
Section titled “Methods”Children
Section titled “Children”| Returns | Signature | Summary |
|---|---|---|
void | attachShader(int program, int shader) | Calls glAttachShader. |
void | detachShader(int program, int shader) | Calls glDetachShader. |
Colors
Section titled “Colors”| Returns | Signature | Summary |
|---|---|---|
void | clearColor(float red, float green, float blue, float alpha) | Calls glClearColor. |
void | colorMask(boolean red, boolean green, boolean blue, boolean alpha) | Calls glColorMask. |
Effects
Section titled “Effects”| Returns | Signature | Summary |
|---|---|---|
void | depthMask(boolean write) | Calls glDepthMask. |
void | stencilMask(int mask) | Calls glStencilMask. |
void | stencilMaskSeparate(int face, int mask) | Calls glStencilMaskSeparate. |
Reactivity
Section titled “Reactivity”| Returns | Signature | Summary |
|---|---|---|
void | bindBuffer(int target, int buffer) | Calls glBindBuffer. |
void | bindVertexArray(int array) | Calls glBindVertexArray. |
void | bindAttribLocation(int program, int index, String name) | Calls glBindAttribLocation. |
void | bindFragDataLocation(int program, int color, String name) | Calls glBindFragDataLocation. |
void | bindSampler(int unit, int sampler) | Calls glBindSampler. |
void | bindTexture(int target, int texture) | Calls glBindTexture. |
Queries
Section titled “Queries”| Returns | Signature | Summary |
|---|---|---|
int | getInteger(int name) | Calls glGetInteger. |
String | getString(int name) | Calls glGetString, or returns null when no OpenGL context is current on the calling thread. |
String | getString(int name, int index) | Calls glGetStringi. |
void | getFloats(int name, float[] values) | Calls glGetFloatv. |
void | getIntegers(int name, int[] values) | Calls glGetIntegerv. |
int | getVertexAttribi(int index, int name) | Calls glGetVertexAttribiv. |
long | getVertexAttribPointer(int index, int name) | Calls glGetVertexAttribPointerv. |
void | getVertexAttribFloats(int index, int name, float[] values) | Calls glGetVertexAttribfv. |
int | getProgrami(int program, int name) | Calls glGetProgramiv. |
String | getProgramInfoLog(int program) | Calls glGetProgramInfoLog. |
int | getShaderi(int shader, int name) | Calls glGetShaderiv. |
String | getShaderInfoLog(int shader) | Calls glGetShaderInfoLog. |
int | getUniformLocation(int program, String name) | Calls glGetUniformLocation. |
boolean | isTexture(int texture) | Calls glIsTexture. |
int | getTexParameteri(int target, int name) | Calls glGetTexParameteriv. |
int | getTexLevelParameteri(int target, int level, int name) | Calls glGetTexLevelParameteriv. |
IGlFrameBufferBinding | getFrameBufferBinding(GlFrameBufferFamily family) | Returns the LWJGL 3 binding of GL_EXT_framebuffer_object for EXT, and the core binding otherwise. |
boolean | isEnabled(int capability) | Calls glIsEnabled. |
Actions
Section titled “Actions”| Returns | Signature | Summary |
|---|---|---|
void | enable(int capability) | Calls glEnable. |
void | disable(int capability) | Calls glDisable. |
void | clear(int mask) | Calls glClear. |
void | readBuffer(int buffer) | Calls glReadBuffer. |
void | readPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels) | Calls glReadPixels. |
void | clearDepth(double depth) | Calls glClearDepth. |
void | clearStencil(int stencil) | Calls glClearStencil. |
void | viewport(int x, int y, int width, int height) | Calls glViewport. |
void | blendEquationSeparate(int color, int alpha) | Calls glBlendEquationSeparate. |
void | blendFuncSeparate(int sourceColor, int destinationColor, int sourceAlpha, int destinationAlpha) | Calls glBlendFuncSeparate. |
void | depthFunc(int function) | Calls glDepthFunc. |
void | stencilOp(int fail, int depthFail, int pass) | Calls glStencilOp. |
void | stencilFunc(int function, int reference, int mask) | Calls glStencilFunc. |
void | stencilOpSeparate(int face, int fail, int depthFail, int pass) | Calls glStencilOpSeparate. |
void | stencilFuncSeparate(int face, int function, int reference, int mask) | Calls glStencilFuncSeparate. |
void | cullFace(int mode) | Calls glCullFace. |
void | frontFace(int mode) | Calls glFrontFace. |
void | lineWidth(float width) | Calls glLineWidth. |
void | polygonMode(int face, int mode) | Calls glPolygonMode. |
void | pixelStorei(int name, int value) | Calls glPixelStorei. |
int | genBuffer() | Calls glGenBuffers. |
void | bufferData(int target, ByteBuffer data, int usage) | Calls glBufferData. |
int | genVertexArray() | Calls glGenVertexArrays. |
void | enableVertexAttribArray(int index) | Calls glEnableVertexAttribArray. |
void | disableVertexAttribArray(int index) | Calls glDisableVertexAttribArray. |
void | vertexAttrib2f(int index, float x, float y) | Calls glVertexAttrib2f. |
void | vertexAttrib3f(int index, float x, float y, float z) | Calls glVertexAttrib3f. |
void | vertexAttrib4f(int index, float x, float y, float z, float w) | Calls glVertexAttrib4f. |
void | vertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long offset) | Calls glVertexAttribPointer. |
int | createProgram() | Calls glCreateProgram. |
void | deleteProgram(int program) | Calls glDeleteProgram. |
void | useProgram(int program) | Calls glUseProgram. |
void | linkProgram(int program) | Calls glLinkProgram. |
int | createShader(int type) | Calls glCreateShader. |
void | deleteShader(int shader) | Calls glDeleteShader. |
void | compileShader(int shader) | Calls glCompileShader. |
void | shaderSource(int shader, String source) | Calls glShaderSource. |
void | uniform1i(int location, int value) | Calls glUniform1i. |
void | uniformiv(int location, int components, IntBuffer values) | Calls glUniform1iv to glUniform4iv. |
void | uniformuiv(int location, int components, IntBuffer values) | Calls glUniform1uiv to glUniform4uiv. |
void | uniformfv(int location, int components, FloatBuffer values) | Calls glUniform1fv to glUniform4fv. |
void | uniformMatrixfv(int location, int columns, FloatBuffer values) | Calls glUniformMatrix2fv to glUniformMatrix4fv. |
int | genTexture() | Calls glGenTextures. |
void | deleteTexture(int texture) | Calls glDeleteTextures. |
void | activeTexture(int unit) | Calls glActiveTexture. |
void | texParameteri(int target, int name, int value) | Calls glTexParameteri. |
void | texImage2D(int target, int level, int internalFormat, int width, int height, int format, int type) | Calls glTexImage2D. |
void | texSubImage2D(int target, int level, int x, int y, int width, int height, int format, int type, int[] pixels) | Calls glTexSubImage2D. |
void | drawArrays(int mode, int first, int count) | Calls glDrawArrays. |
Inherited from IGlBinding (1)
Creation details
Section titled “Creation details”Lwjgl3GlBinding inst() factory
Returns the only instance.
Method details
Section titled “Method details”attachShader
Section titled “attachShader”void attachShader(int program, int shader)
Calls glAttachShader.
detachShader
Section titled “detachShader”void detachShader(int program, int shader)
Calls glDetachShader.
clearColor
Section titled “clearColor”void clearColor(float red, float green, float blue, float alpha)
Calls glClearColor.
colorMask
Section titled “colorMask”void colorMask(boolean red, boolean green, boolean blue, boolean alpha)
Calls glColorMask.
depthMask
Section titled “depthMask”void depthMask(boolean write)
Calls glDepthMask.
stencilMask
Section titled “stencilMask”void stencilMask(int mask)
Calls glStencilMask.
stencilMaskSeparate
Section titled “stencilMaskSeparate”void stencilMaskSeparate(int face, int mask)
Calls glStencilMaskSeparate.
bindBuffer
Section titled “bindBuffer”void bindBuffer(int target, int buffer)
Calls glBindBuffer.
bindVertexArray
Section titled “bindVertexArray”void bindVertexArray(int array)
Calls glBindVertexArray.
bindAttribLocation
Section titled “bindAttribLocation”void bindAttribLocation(int program, int index, String name)
Calls glBindAttribLocation.
bindFragDataLocation
Section titled “bindFragDataLocation”void bindFragDataLocation(int program, int color, String name)
Calls glBindFragDataLocation.
bindSampler
Section titled “bindSampler”void bindSampler(int unit, int sampler)
Calls glBindSampler.
bindTexture
Section titled “bindTexture”void bindTexture(int target, int texture)
Calls glBindTexture.
getInteger
Section titled “getInteger”int getInteger(int name)
Calls glGetInteger.
getString
Section titled “getString”String getString(int name)
Calls glGetString, or returns null when no OpenGL context is current on the calling thread.
String getString(int name, int index)
Calls glGetStringi.
getFloats
Section titled “getFloats”void getFloats(int name, float[] values)
Calls glGetFloatv.
getIntegers
Section titled “getIntegers”void getIntegers(int name, int[] values)
Calls glGetIntegerv.
getVertexAttribi
Section titled “getVertexAttribi”int getVertexAttribi(int index, int name)
Calls glGetVertexAttribiv.
getVertexAttribPointer
Section titled “getVertexAttribPointer”long getVertexAttribPointer(int index, int name)
Calls glGetVertexAttribPointerv.
getVertexAttribFloats
Section titled “getVertexAttribFloats”void getVertexAttribFloats(int index, int name, float[] values)
Calls glGetVertexAttribfv.
getProgrami
Section titled “getProgrami”int getProgrami(int program, int name)
Calls glGetProgramiv.
getProgramInfoLog
Section titled “getProgramInfoLog”String getProgramInfoLog(int program)
Calls glGetProgramInfoLog.
getShaderi
Section titled “getShaderi”int getShaderi(int shader, int name)
Calls glGetShaderiv.
getShaderInfoLog
Section titled “getShaderInfoLog”String getShaderInfoLog(int shader)
Calls glGetShaderInfoLog.
getUniformLocation
Section titled “getUniformLocation”int getUniformLocation(int program, String name)
Calls glGetUniformLocation.
isTexture
Section titled “isTexture”boolean isTexture(int texture)
Calls glIsTexture.
getTexParameteri
Section titled “getTexParameteri”int getTexParameteri(int target, int name)
Calls glGetTexParameteriv.
getTexLevelParameteri
Section titled “getTexLevelParameteri”int getTexLevelParameteri(int target, int level, int name)
Calls glGetTexLevelParameteriv.
getFrameBufferBinding
Section titled “getFrameBufferBinding”IGlFrameBufferBinding getFrameBufferBinding(GlFrameBufferFamily family)
Returns the LWJGL 3 binding of GL_EXT_framebuffer_object for EXT, and the core binding otherwise.
isEnabled
Section titled “isEnabled”boolean isEnabled(int capability)
Calls glIsEnabled.
enable
Section titled “enable”void enable(int capability)
Calls glEnable.
disable
Section titled “disable”void disable(int capability)
Calls glDisable.
void clear(int mask)
Calls glClear.
readBuffer
Section titled “readBuffer”void readBuffer(int buffer)
Calls glReadBuffer.
readPixels
Section titled “readPixels”void readPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels)
Calls glReadPixels.
clearDepth
Section titled “clearDepth”void clearDepth(double depth)
Calls glClearDepth.
clearStencil
Section titled “clearStencil”void clearStencil(int stencil)
Calls glClearStencil.
viewport
Section titled “viewport”void viewport(int x, int y, int width, int height)
Calls glViewport.
blendEquationSeparate
Section titled “blendEquationSeparate”void blendEquationSeparate(int color, int alpha)
Calls glBlendEquationSeparate.
blendFuncSeparate
Section titled “blendFuncSeparate”void blendFuncSeparate(int sourceColor, int destinationColor, int sourceAlpha, int destinationAlpha)
Calls glBlendFuncSeparate.
depthFunc
Section titled “depthFunc”void depthFunc(int function)
Calls glDepthFunc.
stencilOp
Section titled “stencilOp”void stencilOp(int fail, int depthFail, int pass)
Calls glStencilOp.
stencilFunc
Section titled “stencilFunc”void stencilFunc(int function, int reference, int mask)
Calls glStencilFunc.
stencilOpSeparate
Section titled “stencilOpSeparate”void stencilOpSeparate(int face, int fail, int depthFail, int pass)
Calls glStencilOpSeparate.
stencilFuncSeparate
Section titled “stencilFuncSeparate”void stencilFuncSeparate(int face, int function, int reference, int mask)
Calls glStencilFuncSeparate.
cullFace
Section titled “cullFace”void cullFace(int mode)
Calls glCullFace.
frontFace
Section titled “frontFace”void frontFace(int mode)
Calls glFrontFace.
lineWidth
Section titled “lineWidth”void lineWidth(float width)
Calls glLineWidth.
polygonMode
Section titled “polygonMode”void polygonMode(int face, int mode)
Calls glPolygonMode.
pixelStorei
Section titled “pixelStorei”void pixelStorei(int name, int value)
Calls glPixelStorei.
genBuffer
Section titled “genBuffer”int genBuffer()
Calls glGenBuffers.
bufferData
Section titled “bufferData”void bufferData(int target, ByteBuffer data, int usage)
Calls glBufferData.
genVertexArray
Section titled “genVertexArray”int genVertexArray()
Calls glGenVertexArrays.
enableVertexAttribArray
Section titled “enableVertexAttribArray”void enableVertexAttribArray(int index)
Calls glEnableVertexAttribArray.
disableVertexAttribArray
Section titled “disableVertexAttribArray”void disableVertexAttribArray(int index)
Calls glDisableVertexAttribArray.
vertexAttrib2f
Section titled “vertexAttrib2f”void vertexAttrib2f(int index, float x, float y)
Calls glVertexAttrib2f.
vertexAttrib3f
Section titled “vertexAttrib3f”void vertexAttrib3f(int index, float x, float y, float z)
Calls glVertexAttrib3f.
vertexAttrib4f
Section titled “vertexAttrib4f”void vertexAttrib4f(int index, float x, float y, float z, float w)
Calls glVertexAttrib4f.
vertexAttribPointer
Section titled “vertexAttribPointer”void vertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long offset)
Calls glVertexAttribPointer.
createProgram
Section titled “createProgram”int createProgram()
Calls glCreateProgram.
deleteProgram
Section titled “deleteProgram”void deleteProgram(int program)
Calls glDeleteProgram.
useProgram
Section titled “useProgram”void useProgram(int program)
Calls glUseProgram.
linkProgram
Section titled “linkProgram”void linkProgram(int program)
Calls glLinkProgram.
createShader
Section titled “createShader”int createShader(int type)
Calls glCreateShader.
deleteShader
Section titled “deleteShader”void deleteShader(int shader)
Calls glDeleteShader.
compileShader
Section titled “compileShader”void compileShader(int shader)
Calls glCompileShader.
shaderSource
Section titled “shaderSource”void shaderSource(int shader, String source)
Calls glShaderSource.
uniform1i
Section titled “uniform1i”void uniform1i(int location, int value)
Calls glUniform1i.
uniformiv
Section titled “uniformiv”void uniformiv(int location, int components, IntBuffer values)
Calls glUniform1iv to glUniform4iv.
uniformuiv
Section titled “uniformuiv”void uniformuiv(int location, int components, IntBuffer values)
Calls glUniform1uiv to glUniform4uiv.
uniformfv
Section titled “uniformfv”void uniformfv(int location, int components, FloatBuffer values)
Calls glUniform1fv to glUniform4fv.
uniformMatrixfv
Section titled “uniformMatrixfv”void uniformMatrixfv(int location, int columns, FloatBuffer values)
Calls glUniformMatrix2fv to glUniformMatrix4fv.
genTexture
Section titled “genTexture”int genTexture()
Calls glGenTextures.
deleteTexture
Section titled “deleteTexture”void deleteTexture(int texture)
Calls glDeleteTextures.
activeTexture
Section titled “activeTexture”void activeTexture(int unit)
Calls glActiveTexture.
texParameteri
Section titled “texParameteri”void texParameteri(int target, int name, int value)
Calls glTexParameteri.
texImage2D
Section titled “texImage2D”void texImage2D(int target, int level, int internalFormat, int width, int height, int format, int type)
Calls glTexImage2D.
texSubImage2D
Section titled “texSubImage2D”void texSubImage2D(int target, int level, int x, int y, int width, int height, int format, int type, int[] pixels)
Calls glTexSubImage2D.
drawArrays
Section titled “drawArrays”void drawArrays(int mode, int first, int count)
Calls glDrawArrays.
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
