Skip to content

GlTexture

final class GlTexture
Extends: Texture
Implements: IGlTexture
Package: dev.joid.base.opengl.render.texture · Module: base-opengl · Source: GlTexture.java
Backends: LWJGL 2 LWJGL 3

A texture of OpenGL with RGBA8 storage for every level, uploaded as BGRA.

A texture larger than the maximum size of the context throws an IllegalArgumentException that starts with A texture of.

ReturnsSignatureSummary
GlTexturecreate(GlRenderBridge bridge) factoryCreates the OpenGL texture, without storage; GlRenderBridge.createTexture calls it.

ReturnsSignatureSummary
voidsample(TextureSampling sampling)Sets the filter and the wrap of the bound texture, sending only the parameters that changed since the last sampling.
voidforgetSampling()Forgets the last sampling, so that the next sample sends every parameter.
intgetId()Returns the OpenGL name of the texture.
GlRenderBridgegetBridge()Returns the render bridge that created the texture.
TextureSamplinggetSampling()Returns the last sampling sent to OpenGL, or null when none is known.
Inherited from Texture (10)

getWidth · getHeight · isAllocated · getLevels · isDeleted · isMipmapped · mipmap · allocate · upload · delete

GlTexture create(GlRenderBridge bridge) factory

Creates the OpenGL texture, without storage; GlRenderBridge.createTexture calls it.

void sample(TextureSampling sampling)

Sets the filter and the wrap of the bound texture, sending only the parameters that changed since the last sampling.

void forgetSampling()

Forgets the last sampling, so that the next sample sends every parameter.

int getId()

Returns the OpenGL name of the texture.

GlRenderBridge getBridge()

Returns the render bridge that created the texture.

TextureSampling getSampling()

Returns the last sampling sent to OpenGL, or null when none is known.


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