Expand description
2D graphics module: sprites, text, shapes..
Modules§
- blend_
mode - Available blending modes for drawing
- glsl
- GLSL types.
Structs§
- Blend
Mode - Blending modes for drawing.
- Circle
Shape - Specialized shape representing a circle.
- Color
- Utility type for manpulating RGBA colors
- Convex
Shape - Specialized shape representing a convex polygon
- Font
- Type for loading and manipulating character fonts.
- Font
Info - Holds various information about a font.
- Glyph
- Structure describing a glyph.
- Primitive
Type - Types of primitives of which vertex arrays can be rendered.
- Rect
- Utility type for manipulating 2D axis-aligned rectangles.
- Rectangle
Shape - Specialized shape representing a rectangle
- Render
States - Define the states used for drawing to a
RenderTarget
. - Render
Texture - Target for off-screen 2D rendering into a texture
- Render
Window Window
that can serve as a target for 2D drawing.- Shader
- Shader type (vertex, geometry and fragment).
- Sprite
- Drawable representation of a texture
- Text
- Graphical text
- Text
Style - Available text styles.
- Texture
- [
Image
] living on the graphics card that can be used for drawing. - Transform
- Define a 3x3 transform matrix.
- Vertex
- Define a point with color and texture coordinates.
- Vertex
Buffer - Define a set of one or more 2D primitives stored in graphics memory
- Vertex
Buffer Usage - Usage specifiers for a
VertexBuffer
- View
- 2D camera that defines what region is shown on screen
Enums§
- Shader
Type - Types of shaders
Traits§
- Render
Target - Trait for all render targets (window, texture, …)
- Shape
- Trait for textured shapes with outline.
- Transformable
- Decomposed transform defined by a position, a rotation and a scale.
Functions§
- vertex_
array_ bounds - Compute the bounding rectangle of the vertex array.