[][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 asks for in the config, and what the graphics backend code actually gets from the driver.

You shouldn't normally need to fiddle with this directly but it has to be public 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]

Helper function that turns a raw to typed texture. A bit hacky since we can't really specify surface formats as part of this that well, alas. There's some functions, like gfx::Encoder::update_texture(), that don't seem to have a _raw() counterpart, so we need this, so we need BuggoSurfaceFormat to keep fixed at compile time what texture format we're actually using. Oh well! Read more

impl From<Backend> for GlBackendSpec[src]

impl PartialEq<GlBackendSpec> for GlBackendSpec[src]

impl Clone for GlBackendSpec[src]

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

Performs copy-assignment from source. Read more

impl Default for GlBackendSpec[src]

fn default() -> Self[src]

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

impl Eq for GlBackendSpec[src]

impl Copy for GlBackendSpec[src]

impl Debug for GlBackendSpec[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

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<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> 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.