[−][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 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
pub fn version_tuple(&self) -> (u8, u8)
[src]
pub fn api(&self) -> Api
[src]
pub fn shaders(&self) -> (&'static [u8], &'static [u8])
[src]
pub fn init<'a>(
&self,
window_builder: WindowBuilder,
gl_builder: ContextBuilder<'a, NotCurrent>,
events_loop: &EventLoop<()>,
color_format: Format,
depth_format: Format
) -> Result<(WindowedContext<PossiblyCurrent>, Self::Device, Self::Factory, RawRenderTargetView<Self::Resources>, RawDepthStencilView<Self::Resources>), CreationError>
[src]
&self,
window_builder: WindowBuilder,
gl_builder: ContextBuilder<'a, NotCurrent>,
events_loop: &EventLoop<()>,
color_format: Format,
depth_format: Format
) -> Result<(WindowedContext<PossiblyCurrent>, Self::Device, Self::Factory, RawRenderTargetView<Self::Resources>, RawDepthStencilView<Self::Resources>), CreationError>
pub fn info(&self, device: &Self::Device) -> String
[src]
pub fn encoder(
factory: &mut Self::Factory
) -> Encoder<Self::Resources, Self::CommandBuffer>
[src]
factory: &mut Self::Factory
) -> Encoder<Self::Resources, Self::CommandBuffer>
pub fn resize_viewport(
&self,
color_view: &RawRenderTargetView<Self::Resources>,
depth_view: &RawDepthStencilView<Self::Resources>,
color_format: Format,
depth_format: Format,
window: &WindowedContext<PossiblyCurrent>
) -> 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: &WindowedContext<PossiblyCurrent>
) -> Option<(RawRenderTargetView<Self::Resources>, RawDepthStencilView<Self::Resources>)>
pub 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]>
pub 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>
impl Clone for GlBackendSpec
[src]
pub fn clone(&self) -> GlBackendSpec
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for GlBackendSpec
[src]
impl Debug for GlBackendSpec
[src]
impl Default for GlBackendSpec
[src]
pub fn default() -> Self
[src]
Return GlBackendSpec { major: 3, minor: 2, api: glutin :: Api :: OpenGl }
impl Eq for GlBackendSpec
[src]
impl From<Backend> for GlBackendSpec
[src]
impl PartialEq<GlBackendSpec> for GlBackendSpec
[src]
pub fn eq(&self, other: &GlBackendSpec) -> bool
[src]
pub fn ne(&self, other: &GlBackendSpec) -> bool
[src]
impl StructuralEq for GlBackendSpec
[src]
impl StructuralPartialEq for GlBackendSpec
[src]
Auto Trait Implementations
impl RefUnwindSafe for GlBackendSpec
[src]
impl Send for GlBackendSpec
[src]
impl Sync for GlBackendSpec
[src]
impl Unpin for GlBackendSpec
[src]
impl UnwindSafe for GlBackendSpec
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,