Module graphics

Available on crate feature dep_miniquad only.

Modules§

raw_gl
Raw OpenGL bindings Highly unsafe, some of the functions could be missing due to incompatible GL version or all of them might be missing alltogether if rendering context is not a GL one.

Structs§

Arg
A vtable-erased generic argument. Basically, the same thing as fn f<U>(a: &U), but trait-object friendly.
Bindings
Geometry bindings
BlendState
Pixel arithmetic description for blending operations. Will be used in an equation: equation(sfactor * source_color, dfactor * destination_color) Where source_color is the new pixel color and destination color is color from the destination buffer.
BufferId
BufferLayout
ContextInfo
ElapsedQuery
ElapsedQuery is used to measure duration of GPU operations.
Features
GlContext
GlslSupport
Pipeline
PipelineLayout
PipelineParams
RenderPass
ShaderId
ShaderMeta
StencilFaceState
StencilState
TextureId
TextureParams
UniformBlockLayout
UniformDesc
UniformsSource
VertexAttribute

Enums§

Backend
BlendFactor
Blend factors.
BlendValue
Blend values.
BufferSource
BufferType
BufferUsage
CompareFunc
Depth and stencil compare function
Comparison
A pixel-wise comparison function.
CullFace
Specify whether front- or back-facing polygons can be culled.
Equation
Specifies how incoming RGBA values (source) and the RGBA in framebuffer (destination) are combined.
FilterMode
FrontFaceOrder
Define front- and back-facing polygons.
MipmapFilterMode
PassAction
PrimitiveType
RawId
ShaderError
ShaderSource
ShaderType
StencilOp
Operations performed on current stencil value when comparison test passes or fails.
TextureAccess
TextureFormat
List of all the possible formats of input data when uploading to texture. The list is built by intersection of texture formats supported by 3.3 core profile and webgl1.
TextureKind
TextureSource
TextureWrap
Sets the wrap parameter for texture.
UniformType
VertexFormat
VertexStep

Constants§

MAX_SHADERSTAGE_IMAGES
MAX_VERTEX_ATTRIBUTES

Traits§

RenderingBackend