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

pub struct GlBackendSpec { /* fields omitted */ }

A backend specification for OpenGL. This is different from 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 because generic types like Shader depend on it.

Trait Implementations

impl BackendSpec for GlBackendSpec[src]

type Resources = Resources

gfx resource type

type Factory = Factory

gfx factory type

type CommandBuffer = CommandBuffer

gfx command buffer type

type Device = Device

gfx device type

fn raw_to_typed_shader_resource(
    &self,
    texture_view: RawShaderResourceView<Self::Resources>
) -> ShaderResourceView<Self::Resources, [f32; 4]>
[src]

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

fn raw_to_typed_texture(
    &self,
    texture_view: RawTexture<Self::Resources>
) -> Texture<Self::Resources, <Srgba8 as Formatted>::Surface>
[src]

TODO: BUGGO: Placeholder

impl PartialEq<GlBackendSpec> for GlBackendSpec[src]

impl Default for GlBackendSpec[src]

fn default() -> Self[src]

Return GlBackendSpec { major: 3, minor: 2, api: glutin :: Api :: OpenGl }

impl Clone for GlBackendSpec[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<Backend> for GlBackendSpec[src]

impl Eq for GlBackendSpec[src]

impl Copy for GlBackendSpec[src]

impl Debug for GlBackendSpec[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Any + Debug
[src]

fn is<T>() -> bool where
    T: Scalar
[src]

Tests if Self the same as the type T Read more

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Erased for T

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.