JournalGlBinding
final class JournalGlBinding
Implements: IGlBinding
Package: dev.joid.base.opengl.render.state · Module: base-opengl · Source: JournalGlBinding.java
Backends: LWJGL 2 LWJGL 3
An OpenGL binding that notes in a GlStateJournal every state that JOID changes, before passing the call on.
Description
Section titled “Description”GlStateGuard wraps the binding of the backend in it, and GlRenderBridge.getBinding returns it, so that every change that JOID makes during a frame can be given back to the host.
Queries and creations pass through unchanged.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| JournalGlBinding(IGlBinding binding, GlStateJournal journal) | Wraps the binding, and its two framebuffer bindings, around the journal. |
Methods
Section titled “Methods”Children
Section titled “Children”| Returns | Signature | Summary |
|---|---|---|
void | attachShader(int program, int shader) | Calls the wrapped binding. |
void | detachShader(int program, int shader) | Calls the wrapped binding. |
Colors
Section titled “Colors”| Returns | Signature | Summary |
|---|---|---|
void | clearColor(float red, float green, float blue, float alpha) | Notes the clear color in the journal, then calls the wrapped binding. |
void | colorMask(boolean red, boolean green, boolean blue, boolean alpha) | Notes the color mask in the journal, then calls the wrapped binding. |
Effects
Section titled “Effects”| Returns | Signature | Summary |
|---|---|---|
void | depthMask(boolean write) | Notes the depth mask in the journal, then calls the wrapped binding. |
void | stencilMask(int mask) | Notes the stencil masks in the journal, then calls the wrapped binding. |
void | stencilMaskSeparate(int face, int mask) | Notes the stencil masks in the journal, then calls the wrapped binding. |
Reactivity
Section titled “Reactivity”| Returns | Signature | Summary |
|---|---|---|
void | bindBuffer(int target, int buffer) | Notes the buffer bound to that target in the journal, then calls the wrapped binding. |
void | bindVertexArray(int array) | Notes the bound vertex array in the journal, then calls the wrapped binding. |
void | bindAttribLocation(int program, int index, String name) | Calls the wrapped binding. |
void | bindFragDataLocation(int program, int color, String name) | Calls the wrapped binding. |
void | bindSampler(int unit, int sampler) | Notes the sampler of that unit in the journal, then calls the wrapped binding. |
void | bindTexture(int target, int texture) | Notes the texture of the active unit in the journal, then calls the wrapped binding. |
Queries
Section titled “Queries”| Returns | Signature | Summary |
|---|---|---|
int | getInteger(int name) | Calls the wrapped binding. |
String | getString(int name) | Calls the wrapped binding. |
String | getString(int name, int index) | Calls the wrapped binding. |
void | getFloats(int name, float[] values) | Calls the wrapped binding. |
void | getIntegers(int name, int[] values) | Calls the wrapped binding. |
int | getVertexAttribi(int index, int name) | Calls the wrapped binding. |
long | getVertexAttribPointer(int index, int name) | Calls the wrapped binding. |
void | getVertexAttribFloats(int index, int name, float[] values) | Calls the wrapped binding. |
int | getProgrami(int program, int name) | Calls the wrapped binding. |
String | getProgramInfoLog(int program) | Calls the wrapped binding. |
int | getShaderi(int shader, int name) | Calls the wrapped binding. |
String | getShaderInfoLog(int shader) | Calls the wrapped binding. |
int | getUniformLocation(int program, String name) | Calls the wrapped binding. |
boolean | isTexture(int texture) | Calls the wrapped binding. |
int | getTexParameteri(int target, int name) | Calls the wrapped binding. |
int | getTexLevelParameteri(int target, int level, int name) | Calls the wrapped binding. |
IGlFrameBufferBinding | getFrameBufferBinding(GlFrameBufferFamily family) | Returns the journaled framebuffer binding of that family. |
boolean | canPointClientMemory() | Returns the answer of the wrapped binding. |
boolean | isEnabled(int capability) | Calls the wrapped binding. |
Actions
Section titled “Actions”| Returns | Signature | Summary |
|---|---|---|
void | enable(int capability) | Notes that capability in the journal, then calls the wrapped binding. |
void | disable(int capability) | Notes that capability in the journal, then calls the wrapped binding. |
void | clear(int mask) | Calls the wrapped binding. |
void | readBuffer(int buffer) | Notes the read framebuffer and its read buffer in the journal, then calls the wrapped binding. |
void | readPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels) | Calls the wrapped binding. |
void | clearDepth(double depth) | Notes the clear depth in the journal, then calls the wrapped binding. |
void | clearStencil(int stencil) | Notes the clear stencil value in the journal, then calls the wrapped binding. |
void | viewport(int x, int y, int width, int height) | Notes the viewport in the journal, then calls the wrapped binding. |
void | blendEquationSeparate(int color, int alpha) | Notes the blend equations in the journal, then calls the wrapped binding. |
void | blendFuncSeparate(int sourceColor, int destinationColor, int sourceAlpha, int destinationAlpha) | Notes the blend factors in the journal, then calls the wrapped binding. |
void | depthFunc(int function) | Notes the depth function in the journal, then calls the wrapped binding. |
void | stencilOp(int fail, int depthFail, int pass) | Notes the stencil operations in the journal, then calls the wrapped binding. |
void | stencilFunc(int function, int reference, int mask) | Notes the stencil functions in the journal, then calls the wrapped binding. |
void | stencilOpSeparate(int face, int fail, int depthFail, int pass) | Notes the stencil operations in the journal, then calls the wrapped binding. |
void | stencilFuncSeparate(int face, int function, int reference, int mask) | Notes the stencil functions in the journal, then calls the wrapped binding. |
void | cullFace(int mode) | Notes the culled face in the journal, then calls the wrapped binding. |
void | frontFace(int mode) | Notes the front face in the journal, then calls the wrapped binding. |
void | lineWidth(float width) | Notes the line width in the journal, then calls the wrapped binding. |
void | polygonMode(int face, int mode) | Notes the polygon mode in the journal, then calls the wrapped binding. |
void | pixelStorei(int name, int value) | Notes that pixel storage parameter in the journal, then calls the wrapped binding. |
int | genBuffer() | Calls the wrapped binding. |
void | bufferData(int target, ByteBuffer data, int usage) | Calls the wrapped binding. |
int | genVertexArray() | Creates a vertex array through the wrapped binding and excludes it from the journal: the attributes of an array of JOID are never restored. |
void | enableVertexAttribArray(int index) | Notes that vertex attribute in the journal, then calls the wrapped binding. |
void | disableVertexAttribArray(int index) | Notes that vertex attribute in the journal, then calls the wrapped binding. |
void | vertexAttrib2f(int index, float x, float y) | Notes the current value of that attribute in the journal, then calls the wrapped binding. |
void | vertexAttrib3f(int index, float x, float y, float z) | Notes the current value of that attribute in the journal, then calls the wrapped binding. |
void | vertexAttrib4f(int index, float x, float y, float z, float w) | Notes the current value of that attribute in the journal, then calls the wrapped binding. |
void | vertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long offset) | Notes that vertex attribute in the journal, then calls the wrapped binding. |
int | createProgram() | Calls the wrapped binding. |
void | deleteProgram(int program) | Calls the wrapped binding. |
void | useProgram(int program) | Notes the current program in the journal, then calls the wrapped binding. |
void | linkProgram(int program) | Calls the wrapped binding. |
int | createShader(int type) | Calls the wrapped binding. |
void | deleteShader(int shader) | Calls the wrapped binding. |
void | compileShader(int shader) | Calls the wrapped binding. |
void | shaderSource(int shader, String source) | Calls the wrapped binding. |
void | uniform1i(int location, int value) | Calls the wrapped binding. |
void | uniformiv(int location, int components, IntBuffer values) | Calls the wrapped binding. |
void | uniformuiv(int location, int components, IntBuffer values) | Calls the wrapped binding. |
void | uniformfv(int location, int components, FloatBuffer values) | Calls the wrapped binding. |
void | uniformMatrixfv(int location, int columns, FloatBuffer values) | Calls the wrapped binding. |
int | genTexture() | Creates a texture through the wrapped binding and excludes it from the journal: the parameters of a texture of JOID are never restored. |
void | deleteTexture(int texture) | Deletes the texture through the wrapped binding and gives its name back to the journal, for a host that reuses it. |
void | activeTexture(int unit) | Notes the active unit in the journal, then calls the wrapped binding. |
void | texParameteri(int target, int name, int value) | Notes that parameter of the bound texture in the journal, then calls the wrapped binding. |
void | texImage2D(int target, int level, int internalFormat, int width, int height, int format, int type) | Calls the wrapped binding. |
void | texSubImage2D(int target, int level, int x, int y, int width, int height, int format, int type, int[] pixels) | Calls the wrapped binding. |
void | drawArrays(int mode, int first, int count) | Calls the wrapped binding. |
Creation details
Section titled “Creation details”JournalGlBinding
Section titled “JournalGlBinding”JournalGlBinding(IGlBinding binding, GlStateJournal journal)
Wraps the binding, and its two framebuffer bindings, around the journal.
Method details
Section titled “Method details”attachShader
Section titled “attachShader”void attachShader(int program, int shader)
Calls the wrapped binding.
detachShader
Section titled “detachShader”void detachShader(int program, int shader)
Calls the wrapped binding.
clearColor
Section titled “clearColor”void clearColor(float red, float green, float blue, float alpha)
Notes the clear color in the journal, then calls the wrapped binding.
colorMask
Section titled “colorMask”void colorMask(boolean red, boolean green, boolean blue, boolean alpha)
Notes the color mask in the journal, then calls the wrapped binding.
depthMask
Section titled “depthMask”void depthMask(boolean write)
Notes the depth mask in the journal, then calls the wrapped binding.
stencilMask
Section titled “stencilMask”void stencilMask(int mask)
Notes the stencil masks in the journal, then calls the wrapped binding.
stencilMaskSeparate
Section titled “stencilMaskSeparate”void stencilMaskSeparate(int face, int mask)
Notes the stencil masks in the journal, then calls the wrapped binding.
bindBuffer
Section titled “bindBuffer”void bindBuffer(int target, int buffer)
Notes the buffer bound to that target in the journal, then calls the wrapped binding.
bindVertexArray
Section titled “bindVertexArray”void bindVertexArray(int array)
Notes the bound vertex array in the journal, then calls the wrapped binding.
bindAttribLocation
Section titled “bindAttribLocation”void bindAttribLocation(int program, int index, String name)
Calls the wrapped binding.
bindFragDataLocation
Section titled “bindFragDataLocation”void bindFragDataLocation(int program, int color, String name)
Calls the wrapped binding.
bindSampler
Section titled “bindSampler”void bindSampler(int unit, int sampler)
Notes the sampler of that unit in the journal, then calls the wrapped binding.
bindTexture
Section titled “bindTexture”void bindTexture(int target, int texture)
Notes the texture of the active unit in the journal, then calls the wrapped binding.
getInteger
Section titled “getInteger”int getInteger(int name)
Calls the wrapped binding.
getString
Section titled “getString”String getString(int name)
Calls the wrapped binding.
String getString(int name, int index)
Calls the wrapped binding.
getFloats
Section titled “getFloats”void getFloats(int name, float[] values)
Calls the wrapped binding.
getIntegers
Section titled “getIntegers”void getIntegers(int name, int[] values)
Calls the wrapped binding.
getVertexAttribi
Section titled “getVertexAttribi”int getVertexAttribi(int index, int name)
Calls the wrapped binding.
getVertexAttribPointer
Section titled “getVertexAttribPointer”long getVertexAttribPointer(int index, int name)
Calls the wrapped binding.
getVertexAttribFloats
Section titled “getVertexAttribFloats”void getVertexAttribFloats(int index, int name, float[] values)
Calls the wrapped binding.
getProgrami
Section titled “getProgrami”int getProgrami(int program, int name)
Calls the wrapped binding.
getProgramInfoLog
Section titled “getProgramInfoLog”String getProgramInfoLog(int program)
Calls the wrapped binding.
getShaderi
Section titled “getShaderi”int getShaderi(int shader, int name)
Calls the wrapped binding.
getShaderInfoLog
Section titled “getShaderInfoLog”String getShaderInfoLog(int shader)
Calls the wrapped binding.
getUniformLocation
Section titled “getUniformLocation”int getUniformLocation(int program, String name)
Calls the wrapped binding.
isTexture
Section titled “isTexture”boolean isTexture(int texture)
Calls the wrapped binding.
getTexParameteri
Section titled “getTexParameteri”int getTexParameteri(int target, int name)
Calls the wrapped binding.
getTexLevelParameteri
Section titled “getTexLevelParameteri”int getTexLevelParameteri(int target, int level, int name)
Calls the wrapped binding.
getFrameBufferBinding
Section titled “getFrameBufferBinding”IGlFrameBufferBinding getFrameBufferBinding(GlFrameBufferFamily family)
Returns the journaled framebuffer binding of that family.
canPointClientMemory
Section titled “canPointClientMemory”boolean canPointClientMemory()
Returns the answer of the wrapped binding.
isEnabled
Section titled “isEnabled”boolean isEnabled(int capability)
Calls the wrapped binding.
enable
Section titled “enable”void enable(int capability)
Notes that capability in the journal, then calls the wrapped binding.
disable
Section titled “disable”void disable(int capability)
Notes that capability in the journal, then calls the wrapped binding.
void clear(int mask)
Calls the wrapped binding.
readBuffer
Section titled “readBuffer”void readBuffer(int buffer)
Notes the read framebuffer and its read buffer in the journal, then calls the wrapped binding.
readPixels
Section titled “readPixels”void readPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels)
Calls the wrapped binding.
clearDepth
Section titled “clearDepth”void clearDepth(double depth)
Notes the clear depth in the journal, then calls the wrapped binding.
clearStencil
Section titled “clearStencil”void clearStencil(int stencil)
Notes the clear stencil value in the journal, then calls the wrapped binding.
viewport
Section titled “viewport”void viewport(int x, int y, int width, int height)
Notes the viewport in the journal, then calls the wrapped binding.
blendEquationSeparate
Section titled “blendEquationSeparate”void blendEquationSeparate(int color, int alpha)
Notes the blend equations in the journal, then calls the wrapped binding.
blendFuncSeparate
Section titled “blendFuncSeparate”void blendFuncSeparate(int sourceColor, int destinationColor, int sourceAlpha, int destinationAlpha)
Notes the blend factors in the journal, then calls the wrapped binding.
depthFunc
Section titled “depthFunc”void depthFunc(int function)
Notes the depth function in the journal, then calls the wrapped binding.
stencilOp
Section titled “stencilOp”void stencilOp(int fail, int depthFail, int pass)
Notes the stencil operations in the journal, then calls the wrapped binding.
stencilFunc
Section titled “stencilFunc”void stencilFunc(int function, int reference, int mask)
Notes the stencil functions in the journal, then calls the wrapped binding.
stencilOpSeparate
Section titled “stencilOpSeparate”void stencilOpSeparate(int face, int fail, int depthFail, int pass)
Notes the stencil operations in the journal, then calls the wrapped binding.
stencilFuncSeparate
Section titled “stencilFuncSeparate”void stencilFuncSeparate(int face, int function, int reference, int mask)
Notes the stencil functions in the journal, then calls the wrapped binding.
cullFace
Section titled “cullFace”void cullFace(int mode)
Notes the culled face in the journal, then calls the wrapped binding.
frontFace
Section titled “frontFace”void frontFace(int mode)
Notes the front face in the journal, then calls the wrapped binding.
lineWidth
Section titled “lineWidth”void lineWidth(float width)
Notes the line width in the journal, then calls the wrapped binding.
polygonMode
Section titled “polygonMode”void polygonMode(int face, int mode)
Notes the polygon mode in the journal, then calls the wrapped binding.
pixelStorei
Section titled “pixelStorei”void pixelStorei(int name, int value)
Notes that pixel storage parameter in the journal, then calls the wrapped binding.
genBuffer
Section titled “genBuffer”int genBuffer()
Calls the wrapped binding.
bufferData
Section titled “bufferData”void bufferData(int target, ByteBuffer data, int usage)
Calls the wrapped binding.
genVertexArray
Section titled “genVertexArray”int genVertexArray()
Creates a vertex array through the wrapped binding and excludes it from the journal: the attributes of an array of JOID are never restored.
enableVertexAttribArray
Section titled “enableVertexAttribArray”void enableVertexAttribArray(int index)
Notes that vertex attribute in the journal, then calls the wrapped binding.
disableVertexAttribArray
Section titled “disableVertexAttribArray”void disableVertexAttribArray(int index)
Notes that vertex attribute in the journal, then calls the wrapped binding.
vertexAttrib2f
Section titled “vertexAttrib2f”void vertexAttrib2f(int index, float x, float y)
Notes the current value of that attribute in the journal, then calls the wrapped binding.
vertexAttrib3f
Section titled “vertexAttrib3f”void vertexAttrib3f(int index, float x, float y, float z)
Notes the current value of that attribute in the journal, then calls the wrapped binding.
vertexAttrib4f
Section titled “vertexAttrib4f”void vertexAttrib4f(int index, float x, float y, float z, float w)
Notes the current value of that attribute in the journal, then calls the wrapped binding.
vertexAttribPointer
Section titled “vertexAttribPointer”void vertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long offset)
Notes that vertex attribute in the journal, then calls the wrapped binding.
createProgram
Section titled “createProgram”int createProgram()
Calls the wrapped binding.
deleteProgram
Section titled “deleteProgram”void deleteProgram(int program)
Calls the wrapped binding.
useProgram
Section titled “useProgram”void useProgram(int program)
Notes the current program in the journal, then calls the wrapped binding.
linkProgram
Section titled “linkProgram”void linkProgram(int program)
Calls the wrapped binding.
createShader
Section titled “createShader”int createShader(int type)
Calls the wrapped binding.
deleteShader
Section titled “deleteShader”void deleteShader(int shader)
Calls the wrapped binding.
compileShader
Section titled “compileShader”void compileShader(int shader)
Calls the wrapped binding.
shaderSource
Section titled “shaderSource”void shaderSource(int shader, String source)
Calls the wrapped binding.
uniform1i
Section titled “uniform1i”void uniform1i(int location, int value)
Calls the wrapped binding.
uniformiv
Section titled “uniformiv”void uniformiv(int location, int components, IntBuffer values)
Calls the wrapped binding.
uniformuiv
Section titled “uniformuiv”void uniformuiv(int location, int components, IntBuffer values)
Calls the wrapped binding.
uniformfv
Section titled “uniformfv”void uniformfv(int location, int components, FloatBuffer values)
Calls the wrapped binding.
uniformMatrixfv
Section titled “uniformMatrixfv”void uniformMatrixfv(int location, int columns, FloatBuffer values)
Calls the wrapped binding.
genTexture
Section titled “genTexture”int genTexture()
Creates a texture through the wrapped binding and excludes it from the journal: the parameters of a texture of JOID are never restored.
deleteTexture
Section titled “deleteTexture”void deleteTexture(int texture)
Deletes the texture through the wrapped binding and gives its name back to the journal, for a host that reuses it.
activeTexture
Section titled “activeTexture”void activeTexture(int unit)
Notes the active unit in the journal, then calls the wrapped binding.
texParameteri
Section titled “texParameteri”void texParameteri(int target, int name, int value)
Notes that parameter of the bound texture in the journal, then calls the wrapped binding.
texImage2D
Section titled “texImage2D”void texImage2D(int target, int level, int internalFormat, int width, int height, int format, int type)
Calls the wrapped binding.
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 the wrapped binding.
drawArrays
Section titled “drawArrays”void drawArrays(int mode, int first, int count)
Calls the wrapped binding.
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
