Struct ggez::graphics::GlBackendSpec[][src]

pub struct GlBackendSpec { /* fields omitted */ }

A backend specification for OpenGL. This is different from conf::Backend because this needs to be its own struct to implement traits upon, and because there may need to be a layer of translation between what the user specifies in the config, and what the graphics backend init code actually gets.

You shouldn't normally need to fiddle with this directly but it has to be exported cause generic types like Shader depend on it.

Trait Implementations

impl Debug for GlBackendSpec
[src]

Formats the value using the given formatter. Read more

impl Copy for GlBackendSpec
[src]

impl Clone for GlBackendSpec
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for GlBackendSpec
[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 GlBackendSpec
[src]

impl Default for GlBackendSpec
[src]

Return GlBackendSpec { major: 3, minor: 2 }

impl Hash for GlBackendSpec
[src]

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

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

impl From<Backend> for GlBackendSpec
[src]

Performs the conversion.

impl BackendSpec for GlBackendSpec
[src]

Surface type

gfx resource type

gfx factory type

gfx command buffer type

gfx device type

A helper function to take a RawShaderResourceView and turn it into a typed one based on the surface type defined in a BackendSpec Read more

Auto Trait Implementations