Module gl

Source
Expand description

Contains OpenGL helper functions (to compile / link shaders), VirtualGlDriver for unit testing

Structs§

FragmentShaderCompileError
GlShader
GlShaderLinkError
Texture
OpenGL texture, use ReadOnlyWindow::create_texture to create a texture
TextureFlags
Uniform
VertexArrayObject
VertexAttribute
VertexBuffer
VertexLayout
Describes the vertex layout and offsets
VertexShaderCompileError
VirtualGlDriver
Virtual OpenGL “driver”, that simply stores all the OpenGL calls and can replay them at a later stage.

Enums§

GlApiVersion
GlShaderCompileError
GlShaderCreateError
IndexBufferFormat
UniformType
VertexAttributeType

Traits§

VertexLayoutDescription

Functions§

get_opengl_texture
gl_textures_clear_opengl_cache
Destroys all textures, usually done before destroying the OpenGL context
gl_textures_remove_active_pipeline
gl_textures_remove_epochs_from_pipeline
Destroys all textures from the pipeline pipeline_id where the texture is older than the given epoch.
insert_into_active_gl_textures
Inserts a new texture into the OpenGL texture cache, returns a new image ID for the inserted texture

Type Aliases§

GLint
GLuint
Typedef for an OpenGL handle