Skip to content

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.

ReturnsSignatureSummary
DrawGlMipmapBuilder()Creates the builder and its quad; its shader is created at the first use.

ReturnsSignatureSummary
voidbuild(GlRenderBridge bridge, GlTexture texture, MipmapChain chain)Draws each level of the chain from the level above it, with a linear filter.

DrawGlMipmapBuilder()

Creates the builder and its quad; its shader is created at the first use.

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

Report a problem with this page