Crate mod3d_gl

Source
Expand description

§OpenGL/WeblGL Model / Shader Program abstraction library

This library provides structures for OpenGL shaders … !

Modules§

opengl_utils

Macros§

console_log

Structs§

Descriptor
IndexBuffer
A subset of a data buffer for use with OpenGL index data.
Material
A null material for now
Model3DOpenGL
Model3DWebGL
PipelineDesc
ShaderInstantiable
This is a shader-specific instantiable built from the vertices of an mod3d_base::Instantiable
ShaderMaterialBaseData
Change to u8s
Texture
A null texture for now
Transformation
A transformation corresponds to a translation of a rotation of a scaling
UniformBuffer
Creates a UniformBuffer that may contain the data for a number of program Uniforms
VertexBuffer
A subset of a data buffer for use with OpenGL vertex data.
Vertices
This is a set of OpenGL vertices with crate::GlBuffer for all of its contents

Enums§

BufferView
A view of data with either vertices of indices
GlShaderType
TextureId
An enumeration of texures - that this crate particularly cares about
UniformId
An enumeration of uniforms - that this crate particularly cares about

Traits§

Gl
This must provide Debug as Rust requires a type that is generic on a type of trait Gl to have that generic support Debug in order to derive Debug on the type.
GlBuffer
The GlBuffer is something that is the Gl context’s static draw copy of a u8 that forms the values for vertices and indices etc.
GlProgram
GlShader
GlVao
The GlVao correlates to an OpenGl VAO buffer for a ShaderInstantiable mesh + GlProgram

Type Aliases§

Mat3
3-by-3 matrix for transformation of Vec3
Mat4
4-by-4 matrix for transformation of Vec4
Quat
Quaternion
Vec3
3-dimensional vector
Vec4
3-dimensional vector with extra coord (1 for position, 0 for direction)