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.
Description
Section titled “Description”A texture larger than the maximum size of the context throws an IllegalArgumentException that starts with A texture of.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
GlTexture | create(GlRenderBridge bridge) factory | Creates the OpenGL texture, without storage; GlRenderBridge.createTexture calls it. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
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. |
Inherited from Texture (10)
getWidth · getHeight · isAllocated · getLevels · isDeleted · isMipmapped · mipmap · allocate · upload · delete
Creation details
Section titled “Creation details”create
Section titled “create”GlTexture create(GlRenderBridge bridge) factory
Creates the OpenGL texture, without storage; GlRenderBridge.createTexture calls it.
Method details
Section titled “Method details”sample
Section titled “sample”void sample(TextureSampling sampling)
Sets the filter and the wrap of the bound texture, sending only the parameters that changed since the last sampling.
forgetSampling
Section titled “forgetSampling”void forgetSampling()
Forgets the last sampling, so that the next sample sends every parameter.
int getId()
Returns the OpenGL name of the texture.
getBridge
Section titled “getBridge”GlRenderBridge getBridge()
Returns the render bridge that created the texture.
getSampling
Section titled “getSampling”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
