Struct cuivre::graphics::shaders::Shader[][src]

pub struct Shader { /* fields omitted */ }

Represents an OpenGL shader.

Methods

impl Shader
[src]

Create a new shader from GLSL source (provided as a CString), returns Shader object or OpenGL error log. shader_type: usually gl::VERTEX_SHADER or gl::FRAGMENT_SHADER

Trait Implementations

impl Loadable for Shader
[src]

Type of an additional argument that can be supplied to the load methods. Read more

Error type that can be by the load methods. Read more

Loads the object from a byte sequence.

Loads the object from a file. Read more

impl Debug for Shader
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Shader
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Shader
[src]

impl PartialOrd for Shader
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Shader
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for Shader
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Copy for Shader
[src]

impl Clone for Shader
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Shader

impl Sync for Shader