Module graphics

Source
Expand description

2D graphics module: sprites, text, shapes..

Modules§

blend_mode
Available blending modes for drawing
glsl
GLSL types.

Structs§

BlendMode
Blending modes for drawing.
CircleShape
Specialized shape representing a circle.
Color
Utility type for manpulating RGBA colors
ConvexShape
Specialized shape representing a convex polygon
Font
Type for loading and manipulating character fonts.
FontInfo
Holds various information about a font.
Glyph
Structure describing a glyph.
PrimitiveType
Types of primitives of which vertex arrays can be rendered.
Rect
Utility type for manipulating 2D axis-aligned rectangles.
RectangleShape
Specialized shape representing a rectangle
RenderStates
Define the states used for drawing to a RenderTarget.
RenderTexture
Target for off-screen 2D rendering into a texture
RenderWindow
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
TextStyle
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.
VertexBuffer
Define a set of one or more 2D primitives stored in graphics memory
VertexBufferUsage
Usage specifiers for a VertexBuffer
View
2D camera that defines what region is shown on screen

Enums§

ShaderType
Types of shaders

Traits§

RenderTarget
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.

Type Aliases§

FloatRect
A Rect of f32.
IntRect
A Rect of i32.