Skip to content

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.

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.

ReturnsSignatureSummary
JournalGlBinding(IGlBinding binding, GlStateJournal journal)Wraps the binding, and its two framebuffer bindings, around the journal.

ReturnsSignatureSummary
voidattachShader(int program, int shader)Calls the wrapped binding.
voiddetachShader(int program, int shader)Calls the wrapped binding.
ReturnsSignatureSummary
voidclearColor(float red, float green, float blue, float alpha)Notes the clear color in the journal, then calls the wrapped binding.
voidcolorMask(boolean red, boolean green, boolean blue, boolean alpha)Notes the color mask in the journal, then calls the wrapped binding.
ReturnsSignatureSummary
voiddepthMask(boolean write)Notes the depth mask in the journal, then calls the wrapped binding.
voidstencilMask(int mask)Notes the stencil masks in the journal, then calls the wrapped binding.
voidstencilMaskSeparate(int face, int mask)Notes the stencil masks in the journal, then calls the wrapped binding.
ReturnsSignatureSummary
voidbindBuffer(int target, int buffer)Notes the buffer bound to that target in the journal, then calls the wrapped binding.
voidbindVertexArray(int array)Notes the bound vertex array in the journal, then calls the wrapped binding.
voidbindAttribLocation(int program, int index, String name)Calls the wrapped binding.
voidbindFragDataLocation(int program, int color, String name)Calls the wrapped binding.
voidbindSampler(int unit, int sampler)Notes the sampler of that unit in the journal, then calls the wrapped binding.
voidbindTexture(int target, int texture)Notes the texture of the active unit in the journal, then calls the wrapped binding.
ReturnsSignatureSummary
intgetInteger(int name)Calls the wrapped binding.
StringgetString(int name)Calls the wrapped binding.
StringgetString(int name, int index)Calls the wrapped binding.
voidgetFloats(int name, float[] values)Calls the wrapped binding.
voidgetIntegers(int name, int[] values)Calls the wrapped binding.
intgetVertexAttribi(int index, int name)Calls the wrapped binding.
longgetVertexAttribPointer(int index, int name)Calls the wrapped binding.
voidgetVertexAttribFloats(int index, int name, float[] values)Calls the wrapped binding.
intgetProgrami(int program, int name)Calls the wrapped binding.
StringgetProgramInfoLog(int program)Calls the wrapped binding.
intgetShaderi(int shader, int name)Calls the wrapped binding.
StringgetShaderInfoLog(int shader)Calls the wrapped binding.
intgetUniformLocation(int program, String name)Calls the wrapped binding.
booleanisTexture(int texture)Calls the wrapped binding.
intgetTexParameteri(int target, int name)Calls the wrapped binding.
intgetTexLevelParameteri(int target, int level, int name)Calls the wrapped binding.
IGlFrameBufferBindinggetFrameBufferBinding(GlFrameBufferFamily family)Returns the journaled framebuffer binding of that family.
booleancanPointClientMemory()Returns the answer of the wrapped binding.
booleanisEnabled(int capability)Calls the wrapped binding.
ReturnsSignatureSummary
voidenable(int capability)Notes that capability in the journal, then calls the wrapped binding.
voiddisable(int capability)Notes that capability in the journal, then calls the wrapped binding.
voidclear(int mask)Calls the wrapped binding.
voidreadBuffer(int buffer)Notes the read framebuffer and its read buffer in the journal, then calls the wrapped binding.
voidreadPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels)Calls the wrapped binding.
voidclearDepth(double depth)Notes the clear depth in the journal, then calls the wrapped binding.
voidclearStencil(int stencil)Notes the clear stencil value in the journal, then calls the wrapped binding.
voidviewport(int x, int y, int width, int height)Notes the viewport in the journal, then calls the wrapped binding.
voidblendEquationSeparate(int color, int alpha)Notes the blend equations in the journal, then calls the wrapped binding.
voidblendFuncSeparate(int sourceColor, int destinationColor, int sourceAlpha, int destinationAlpha)Notes the blend factors in the journal, then calls the wrapped binding.
voiddepthFunc(int function)Notes the depth function in the journal, then calls the wrapped binding.
voidstencilOp(int fail, int depthFail, int pass)Notes the stencil operations in the journal, then calls the wrapped binding.
voidstencilFunc(int function, int reference, int mask)Notes the stencil functions in the journal, then calls the wrapped binding.
voidstencilOpSeparate(int face, int fail, int depthFail, int pass)Notes the stencil operations in the journal, then calls the wrapped binding.
voidstencilFuncSeparate(int face, int function, int reference, int mask)Notes the stencil functions in the journal, then calls the wrapped binding.
voidcullFace(int mode)Notes the culled face in the journal, then calls the wrapped binding.
voidfrontFace(int mode)Notes the front face in the journal, then calls the wrapped binding.
voidlineWidth(float width)Notes the line width in the journal, then calls the wrapped binding.
voidpolygonMode(int face, int mode)Notes the polygon mode in the journal, then calls the wrapped binding.
voidpixelStorei(int name, int value)Notes that pixel storage parameter in the journal, then calls the wrapped binding.
intgenBuffer()Calls the wrapped binding.
voidbufferData(int target, ByteBuffer data, int usage)Calls the wrapped binding.
intgenVertexArray()Creates a vertex array through the wrapped binding and excludes it from the journal: the attributes of an array of JOID are never restored.
voidenableVertexAttribArray(int index)Notes that vertex attribute in the journal, then calls the wrapped binding.
voiddisableVertexAttribArray(int index)Notes that vertex attribute in the journal, then calls the wrapped binding.
voidvertexAttrib2f(int index, float x, float y)Notes the current value of that attribute in the journal, then calls the wrapped binding.
voidvertexAttrib3f(int index, float x, float y, float z)Notes the current value of that attribute in the journal, then calls the wrapped binding.
voidvertexAttrib4f(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.
voidvertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long offset)Notes that vertex attribute in the journal, then calls the wrapped binding.
intcreateProgram()Calls the wrapped binding.
voiddeleteProgram(int program)Calls the wrapped binding.
voiduseProgram(int program)Notes the current program in the journal, then calls the wrapped binding.
voidlinkProgram(int program)Calls the wrapped binding.
intcreateShader(int type)Calls the wrapped binding.
voiddeleteShader(int shader)Calls the wrapped binding.
voidcompileShader(int shader)Calls the wrapped binding.
voidshaderSource(int shader, String source)Calls the wrapped binding.
voiduniform1i(int location, int value)Calls the wrapped binding.
voiduniformiv(int location, int components, IntBuffer values)Calls the wrapped binding.
voiduniformuiv(int location, int components, IntBuffer values)Calls the wrapped binding.
voiduniformfv(int location, int components, FloatBuffer values)Calls the wrapped binding.
voiduniformMatrixfv(int location, int columns, FloatBuffer values)Calls the wrapped binding.
intgenTexture()Creates a texture through the wrapped binding and excludes it from the journal: the parameters of a texture of JOID are never restored.
voiddeleteTexture(int texture)Deletes the texture through the wrapped binding and gives its name back to the journal, for a host that reuses it.
voidactiveTexture(int unit)Notes the active unit in the journal, then calls the wrapped binding.
voidtexParameteri(int target, int name, int value)Notes that parameter of the bound texture in the journal, then calls the wrapped binding.
voidtexImage2D(int target, int level, int internalFormat, int width, int height, int format, int type)Calls the wrapped binding.
voidtexSubImage2D(int target, int level, int x, int y, int width, int height, int format, int type, int[] pixels)Calls the wrapped binding.
voiddrawArrays(int mode, int first, int count)Calls the wrapped binding.

JournalGlBinding(IGlBinding binding, GlStateJournal journal)

Wraps the binding, and its two framebuffer bindings, around the journal.

void attachShader(int program, int shader)

Calls the wrapped binding.

void detachShader(int program, int shader)

Calls the wrapped binding.

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.

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.

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.

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.

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.


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