[−][src]Struct ggez::graphics::GlBackendSpec
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 version_tuple(&self) -> (u8, u8)
[src]
fn api(&self) -> Api
[src]
fn shaders(&self) -> (&'static [u8], &'static [u8])
[src]
fn init<'a>(
&self,
window_builder: WindowBuilder,
gl_builder: ContextBuilder<'a>,
events_loop: &EventsLoop,
color_format: Format,
depth_format: Format
) -> Result<(GlWindow, Self::Device, Self::Factory, RawRenderTargetView<Self::Resources>, RawDepthStencilView<Self::Resources>), CreationError>
[src]
&self,
window_builder: WindowBuilder,
gl_builder: ContextBuilder<'a>,
events_loop: &EventsLoop,
color_format: Format,
depth_format: Format
) -> Result<(GlWindow, Self::Device, Self::Factory, RawRenderTargetView<Self::Resources>, RawDepthStencilView<Self::Resources>), CreationError>
fn info(&self, device: &Self::Device) -> String
[src]
fn encoder(
factory: &mut Self::Factory
) -> Encoder<Self::Resources, Self::CommandBuffer>
[src]
factory: &mut Self::Factory
) -> Encoder<Self::Resources, Self::CommandBuffer>
fn resize_viewport(
&self,
color_view: &RawRenderTargetView<Self::Resources>,
depth_view: &RawDepthStencilView<Self::Resources>,
color_format: Format,
depth_format: Format,
window: &GlWindow
) -> Option<(RawRenderTargetView<Self::Resources>, RawDepthStencilView<Self::Resources>)>
[src]
&self,
color_view: &RawRenderTargetView<Self::Resources>,
depth_view: &RawDepthStencilView<Self::Resources>,
color_format: Format,
depth_format: Format,
window: &GlWindow
) -> Option<(RawRenderTargetView<Self::Resources>, RawDepthStencilView<Self::Resources>)>
fn raw_to_typed_shader_resource(
&self,
texture_view: RawShaderResourceView<Self::Resources>
) -> ShaderResourceView<Self::Resources, [f32; 4]>
[src]
&self,
texture_view: RawShaderResourceView<Self::Resources>
) -> ShaderResourceView<Self::Resources, [f32; 4]>
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]
&self,
texture_view: RawTexture<Self::Resources>
) -> Texture<Self::Resources, <Srgba8 as Formatted>::Surface>
TODO: BUGGO: Placeholder
impl PartialEq<GlBackendSpec> for GlBackendSpec
[src]
fn eq(&self, other: &GlBackendSpec) -> bool
[src]
fn ne(&self, other: &GlBackendSpec) -> bool
[src]
impl Default for GlBackendSpec
[src]
impl Clone for GlBackendSpec
[src]
fn clone(&self) -> 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
impl Send for GlBackendSpec
impl Sync for GlBackendSpec
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Scalar for T where
T: Copy + PartialEq<T> + Any + Debug,
[src]
T: Copy + PartialEq<T> + Any + Debug,
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> 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>,
T: Parameter<Self>,
Sets value
as a parameter of self
.