Struct radiant_rs::Texture [] [src]

pub struct Texture { /* fields omitted */ }

A texture to draw or draw to.

Textures serve as drawing targets for userdefined Postprocessors or custom Programs. A texture can also be drawn with Renderer::draw_rect().

Methods

impl Texture
[src]

Creates a new texture with given dimensions. The texture will use linear interpolation for magnification or minification and internally use the F16F16F16F16 format.

Creates a new texture with given dimensions and filters. It will internally use the F16F16F16F16 format.

Creates a new texture from given TextureInfo struct.

Clones texture with new filters and wrapping function. Both source and clone reference the same texture data.

Clears the texture with given color.

Trait Implementations

impl Clone for Texture
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl AsUniform for Texture
[src]