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]
impl Debug for GlBackendSpec
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for GlBackendSpec
[src]
impl Copy for GlBackendSpec
impl Clone for GlBackendSpec
[src]
impl Clone for GlBackendSpec
fn clone(&self) -> GlBackendSpec
[src]
fn clone(&self) -> GlBackendSpec
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for GlBackendSpec
[src]
impl PartialEq for GlBackendSpec
fn eq(&self, other: &GlBackendSpec) -> bool
[src]
fn eq(&self, other: &GlBackendSpec) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &GlBackendSpec) -> bool
[src]
fn ne(&self, other: &GlBackendSpec) -> bool
This method tests for !=
.
impl Eq for GlBackendSpec
[src]
impl Eq for GlBackendSpec
impl Default for GlBackendSpec
[src]
impl Default for GlBackendSpec
impl Hash for GlBackendSpec
[src]
impl Hash for GlBackendSpec
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl From<Backend> for GlBackendSpec
[src]
impl From<Backend> for GlBackendSpec
impl BackendSpec for GlBackendSpec
[src]
impl BackendSpec for GlBackendSpec
type SurfaceType = Srgba8
Surface type
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(
texture_view: RawShaderResourceView<Self::Resources>
) -> ShaderResourceView<Self::Resources, <Self::SurfaceType as Formatted>::View>
[src]
fn raw_to_typed_shader_resource(
texture_view: RawShaderResourceView<Self::Resources>
) -> ShaderResourceView<Self::Resources, <Self::SurfaceType as Formatted>::View>
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
impl Send for GlBackendSpec
impl Send for GlBackendSpec
impl Sync for GlBackendSpec
impl Sync for GlBackendSpec