Skip to content

FixedMatrixImport

final class FixedMatrixImport
Package: dev.joid.base.opengl.render.state · Module: base-opengl · Source: FixedMatrixImport.java
Backends: LWJGL 2 LWJGL 3

Loads the projection and modelview matrices of the fixed pipeline of a compatibility host into the matrix stacks of JOID.

ReturnsSignatureSummary
FixedMatrixImportcreate(GlRenderBridge bridge) factoryCreates the import for the bridge.

ReturnsSignatureSummary
voidapply()Reads the projection and the modelview matrices of OpenGL and loads them into the projection and modelview stacks of the bridge.

FixedMatrixImport create(GlRenderBridge bridge) factory

Throws:

  • IllegalStateException: Only a compatibility context has fixed-function matrices to import, this context is … with …: create the context with the compatibility profile to import them

Creates the import for the bridge. Throws an IllegalStateException when the context is not a compatibility context, which has no fixed-function matrices.

void apply()

Reads the projection and the modelview matrices of OpenGL and loads them into the projection and modelview stacks of the bridge.


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