Module storm::graphics[][src]

Expand description

Graphics primitives.

Modules

Bundled sample shaders for basic sprite and text rendering.

Rust struct types that are compatible with the GLSL std140 memory layout.

Structs

Buffers a set of elements on the device.

Parameters for how the screen should be cleared.

Represents the runtime metadata required to configure and draw with a shader.

Represents a GPU resource for a texture.

Token to reference a texture with. Has basic configuration settings.

Stores a uniform on the device.

Describes an individual vertex attribute. These usually correspond to fields in a struct.

The input format a vertice will be converted from.

The output format a vertice will be converted into.

Configuration settings for the window.

Enums

Enumeration for window display options.

Specifies what kind of primitives to render.

Enumeration for all possible vsync settings.

Traits

A trait to describe a shader’s inputs and outputs so they can be represented without using the heap.

A trait to describe vertices that will be consumed by a shader.

Functions

Clears the screen buffers according to the clear mode.

Returns a simple 1x1 white texture. This texture is reused globally.

Gets the max texture size supported on the GPU.

Sets the display mode of the window.

Sets the title of the window.

Gets the logical size of the viewport. This may differ from the window’s logical size.

Gets the physical size of the viewport. This may differ from the window’s physical size.

Gets the logical size of the window. This may differ from the viewport’s logical size.

Gets the physical size of the window. This may differ from the viewport’s physical size.