Expand description
Functions and types used for rendering to the screen.
This module implements a (hopefully!) efficent quad renderer, which will queue up drawing operations until it is absolutely necessary to send them to the graphics hardware. This allows us to minimize the number of draw calls made, speeding up rendering.
Re-exports
pub use self::animation::Animation;
pub use self::color::Color;
pub use self::scaling::ScreenScaling;
pub use self::shader::Shader;
pub use self::text::Font;
pub use self::text::Text;
pub use self::texture::Texture;
pub use self::ui::NineSlice;
Modules
Functions and types relating to animations.
Functions and types relating to color.
Functions and types relating to screen scaling.
Functions and types relating to shader programs.
Functions and types relating to text rendering.
Functions and types relating to textures.
Functions and types relating to user interfaces.
Structs
Struct representing the parameters that can be used when drawing.
A rectangle of
f32
s.Traits
Represents a type that can be drawn to the screen/render target.
Functions
Clears the currently enabled render target to the specified color.
Draws an object to the currently enabled render target.
Sends queued data to the graphics hardware.
Gets the internal height of the screen.
Gets the internal size of the screen.
Gets the internal width of the screen.
Gets the current scaling mode.
Draws the currently enabled render target to the screen, scaling/letterboxing it if necessary.
Sets the internal height of the screen.
Sets the internal size of the screen.
Sets the internal width of the screen.
Sets the current scaling mode.
Sets the texture that is currently being used for rendering.
Type Definitions
A 2D vector with
f32
components.