Re-exports§
pub use cvmath;
Modules§
- color
- Pixel color formats.
- d2
- Immediate mode 2D rendering.
- d3
- Graphics module 3D.
- dither
- Dither patterns.
- gl
- OpenGL graphics backend.
- im
- Immediate-mode drawing module.
- image
- Image module.
- msdfgen
- Use fonts created with Msdfgen with libshade.
Macros§
- Texture
Usage - Macro to create TextureUsage flags.
- clear
- Clear the surface.
- norm
Structs§
- Animated
Texture2D - Animated Texture2D structure.
- Base
Object - Graphics BaseObject handle.
- Clear
Args - Arguments for clear.
- Draw
Args - Arguments for draw.
- Draw
Indexed Args - Arguments for draw_indexed.
- Draw
Mask - Draw mask.
- Draw
Metrics - Drawing statistics.
- Draw
Vertex Buffer - Arguments for drawing a vertex buffer and metadata.
- Graphics
- Graphics interface.
- Index3
- Triangle indices.
- Index
Buffer - IndexBuffer handle.
- Norm
- Normalized attribute.
- Shader
Program - ShaderProgram handle.
- Texture2D
- Texture2D handle.
- Texture2D
Info - Texture2D information.
- Texture
Props - Texture properties.
- Texture
Usage - Texture usage flags.
- Uniform
Fn - Uniform visitor from closure.
- Vertex
Attribute - Vertex attribute.
- Vertex
Buffer - VertexBuffer handle.
- Vertex
Layout - Vertex layout.
Enums§
- Begin
Args - Arguments for begin.
- Blend
Mode - Blend mode.
- Buffer
Usage - Buffer usage.
- Compare
- Comparison operator.
- Cull
Mode - Cull mode.
- Index
Type - Index type for index buffers.
- Object
Type - Types of graphics objects.
- Prim
Type - Primitive type.
- Texture
Filter - Texture filter mode.
- Texture
Format - Texture format.
- Texture
Wrap - Texture wrap mode.
- Vertex
Attribute Format - VertexAttribute format.
- Vertex
Attribute Size - VertexAttribute size.
- Vertex
Attribute Type - VertexAttribute type.
- Vertex
Divisor - Vertex divisor for instanced rendering.
Traits§
- IGraphics
- Graphics interface.
- Image
ToTexture - Load various image types into textures.
- Object
Cast - Trait for casting object handles to specific object types.
- TIndex
- Trait for index types.
- TIndices
- Trait for index collections.
- TUniform
- Marker trait for types containing uniform values.
- TUniform
Value - Values that can be passed as shader uniforms.
- TVertex
- Defines a vertex type.
- TVertex2
- Common attributes for 2D vertices.
- TVertex3
- Common attributes for 3D vertices.
- TVertex
Attribute Format - Vertex attribute format trait.
- Uniform
Setter - Indirection over a backend-specific uniform setter.
- Uniform
Visitor - Visiting an instance and pushing its uniforms.
Functions§
- Graphics
- Graphics constructor.