Crate shade

Crate shade 

Source

Re-exports§

pub use cvmath;

Modules§

d2
Immediate mode 2D rendering.
d3
Graphics module 3D.
gl
OpenGL graphics backend.
image
Utilities for loading and manipulating images.
msdfgen
Use fonts created with Msdfgen with libshade.

Macros§

norm

Structs§

ClearArgs
Arguments for clear.
DrawArgs
Arguments for draw.
DrawIndexedArgs
Arguments for draw_indexed.
DrawMask
Draw mask.
DrawVertexBuffer
Arguments for drawing a vertex buffer and metadata.
Graphics
Graphics interface.
IndexBuffer
IndexBuffer handle.
Norm
Normalized attribute.
Shader
Shader handle.
Surface
Surface handle.
SurfaceInfo
Surface information.
Texture2D
Texture2D handle.
Texture2DInfo
Texture2D information.
TextureCube
TextureCube handle.
TextureCubeInfo
TextureCube information.
VertexAttribute
Vertex attribute.
VertexBuffer
VertexBuffer handle.
VertexLayout
Vertex layout.

Enums§

BlendMode
Blend mode.
BufferUsage
Buffer usage.
CullMode
Cull mode.
DepthTest
Depth test.
FreeMode
Free mode.
IndexType
Index type for index buffers.
PrimType
Primitive type.
SurfaceFormat
Surface format.
TextureFilter
Texture filter mode.
TextureFormat
Texture format.
TextureWrap
Texture wrap mode.
VertexAttributeFormat
VertexAttribute format.
VertexAttributeSize
VertexAttribute size.
VertexAttributeType
VertexAttribute type.
VertexDivisor
Vertex divisor for instanced rendering.

Traits§

IGraphics
Graphics interface.
TIndex
Trait for index types.
TUniform
Marker trait for types containing uniform values.
TUniformValue
Values that can be passed as shader uniforms.
TVertex
Defines a vertex type.
TVertexAttributeFormat
UniformSetter
Indirection over a backend-specific uniform setter.
UniformVisitor
Visiting an instance and pushing its uniforms.

Functions§

Graphics
Graphics constructor.