Struct allegro::core::Core

source ·
pub struct Core { /* private fields */ }
Expand description

Type through which you’ll be doing most your interaction with Allegro.

Implementations

This must be called on the main thread.

Initializes Allegro while merging in the system_config into the system configuration.

Returns the system config.

Returns the system config.

Set the shader as current for the current bitmap. Pass None to stop using this shader. Returns an error if the shader isn’t compatible with the bitmap.

Returns the source of the shader that Allegro uses by default.

Set a sampler for a particular uniform and unit for the current shader. Different uniforms should be set to different units. Pass None to bmp to clear the sampler.

Sets a shader uniform to a value.

Set blender options.

Set blender options, with alpha channel getting a separate setting.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.