DrawGlMipmapBuilder
final class DrawGlMipmapBuilder
Implements: IGlMipmapBuilder
Package: dev.joid.base.opengl.render.texture · Module: base-opengl · Source: DrawGlMipmapBuilder.java
Backends: LWJGL 2 LWJGL 3
Builds the mipmaps of a texture by drawing a quad per level, for an OpenGL context that cannot blit framebuffers.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| DrawGlMipmapBuilder() | Creates the builder and its quad; its shader is created at the first use. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | build(GlRenderBridge bridge, GlTexture texture, MipmapChain chain) | Draws each level of the chain from the level above it, with a linear filter. |
Creation details
Section titled “Creation details”DrawGlMipmapBuilder
Section titled “DrawGlMipmapBuilder”DrawGlMipmapBuilder()
Creates the builder and its quad; its shader is created at the first use.
Method details
Section titled “Method details”void build(GlRenderBridge bridge, GlTexture texture, MipmapChain chain)
Throws:
IllegalStateException: The shader that draws the mipmaps does not compile on …, update the graphics driver
Draws each level of the chain from the level above it, with a linear filter.
With the dev jar, prints once that the pixels may differ from the other backends; throws an IllegalStateException when its shader does not compile on the context.
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
