base-opengl
The render bridge of OpenGL, with its binding, its capabilities, its textures, framebuffers and shaders, and the state guard that gives a host its state back. Learn: base-opengl, Embedding in a host.
Main types
Section titled “Main types”| Type | Kind | Summary |
|---|---|---|
BlitGlMipmapBuilder | class | Builds the mipmaps of a texture with one linear framebuffer blit per level, the path that matches the other backends pixel for pixel. |
DrawGlMipmapBuilder | class | Builds the mipmaps of a texture by drawing a quad per level, for an OpenGL context that cannot blit framebuffers. |
FixedMatrixImport | class | Loads the projection and modelview matrices of the fixed pipeline of a compatibility host into the matrix stacks of JOID. |
GlBorrowedTexture | class | A texture of the host, by OpenGL name, that JOID samples without owning it. |
GlBorrowedTextureBackend | class | The borrowed texture backend of any OpenGL context, over a snapshot backend and a binding. |
GlCapabilities | class | What the current OpenGL context offers, read once when the render bridge is created: versions, profile, extensions and limits. |
GlConstants | class | The OpenGL enum values that the OpenGL module passes to its binding, named after the OpenGL constants without their GL_ prefix. |
GlEnums | class | Converts the render states of JOID to the OpenGL values that the binding takes. |
GlFrameBuffer | class | A framebuffer of OpenGL with a color texture and a 24-bit depth renderbuffer, without stencil. |
GlFrameBufferFamily | enum | The family of framebuffer functions that an OpenGL context offers. |
GlProfile | enum | Whether an OpenGL context keeps the fixed pipeline (compatibility) or drops it (core, forward-compatible core). |
GlRenderBridge | class | The render bridge of OpenGL, shared by every OpenGL backend, which calls OpenGL through a binding and gives the host its state back. |
GlShader | class | A shader program of OpenGL, linked from the translation of the two stages of a JOID shader. |
GlSnapshotCapture | class | Reads the back buffer of an OpenGL context into a snapshot image. |
GlStateGuard | class | Saves the OpenGL state that JOID changes during a frame and gives it back to the host when the frame ends. |
GlStateGuardBackend | class | The base of the state guard backends of OpenGL: the surface of a snapshot backend, the traps each context supports and the state read through a binding. |
GlStateJournal | class | The record of the OpenGL states that JOID touched since the guard was entered, with their values before the first change. |
GlStateKey | enum | The kinds of OpenGL state that the journal records, in the order in which it restores them. |
GlStateSnapshot | class | Reads the state of an OpenGL context that the state guard must preserve, by name. |
GlTexture | class | A texture of OpenGL with RGBA8 storage for every level, uploaded as BGRA. |
GlVertexInput | class | The vertex buffer of the OpenGL render bridge, with the vertex array that points every attribute of JOID at it. |
IGlBinding | interface | The OpenGL calls of the OpenGL module, one method per OpenGL function, implemented once per library. |
IGlFrameBufferBinding | interface | The framebuffer calls of OpenGL for one family: the core functions or those of GL_EXT_framebuffer_object. |
IGlMipmapBuilder | interface | Builds the mipmap levels of a texture of OpenGL from its first level. |
IGlTexture | interface | A texture that the OpenGL render bridge binds by name, owned by JOID or borrowed from the host. |
JournalGlBinding | class | An OpenGL binding that notes in a GlStateJournal every state that JOID changes, before passing the call on. |
JournalGlFrameBufferBinding | class | A framebuffer binding that notes in a GlStateJournal the framebuffers and renderbuffers that JOID binds, before passing the call on. |
Supporting types
Section titled “Supporting types”Nested types and listeners that the main types use.
| Type | Kind | Summary |
|---|---|---|
GlStateSnapshot.MaterialReader | interface | Reads a material of the fixed-function pipeline, which IGlBinding does not query. |
