Skip to main content

Crate shade

Crate shade 

Source

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§

TextureUsage
Macro to create TextureUsage flags.
clear
Clear the surface.
norm

Structs§

AnimatedTexture2D
Animated Texture2D structure.
BaseObject
Graphics BaseObject handle.
ClearArgs
Arguments for clear.
DrawArgs
Arguments for draw.
DrawIndexedArgs
Arguments for draw_indexed.
DrawMask
Draw mask.
DrawMetrics
Drawing statistics.
DrawVertexBuffer
Arguments for drawing a vertex buffer and metadata.
Graphics
Graphics interface.
Index3
Triangle indices.
IndexBuffer
IndexBuffer handle.
Norm
Normalized attribute.
ShaderProgram
ShaderProgram handle.
Texture2D
Texture2D handle.
Texture2DInfo
Texture2D information.
TextureProps
Texture properties.
TextureUsage
Texture usage flags.
UniformFn
Uniform visitor from closure.
VertexAttribute
Vertex attribute.
VertexBuffer
VertexBuffer handle.
VertexLayout
Vertex layout.

Enums§

BeginArgs
Arguments for begin.
BlendMode
Blend mode.
BufferUsage
Buffer usage.
Compare
Comparison operator.
CullMode
Cull mode.
IndexType
Index type for index buffers.
ObjectType
Types of graphics objects.
PrimType
Primitive type.
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.
ImageToTexture
Load various image types into textures.
ObjectCast
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.
TUniformValue
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.
TVertexAttributeFormat
Vertex attribute format trait.
UniformSetter
Indirection over a backend-specific uniform setter.
UniformVisitor
Visiting an instance and pushing its uniforms.

Functions§

Graphics
Graphics constructor.