[−][src]Struct luminance_glfw::GlfwSurface
GLFW surface.
This type implements GraphicsContext
so that you can use it to perform render with
luminance.
Fields
window: Window
Wrapped GLFW window.
events_rx: Receiver<(f64, WindowEvent)>
Wrapped GLFW events queue.
Implementations
impl GlfwSurface
[src]
pub fn new_gl33<S>(
title: S,
win_opt: WindowOpt
) -> Result<Self, GlfwSurfaceError> where
S: AsRef<str>,
[src]
title: S,
win_opt: WindowOpt
) -> Result<Self, GlfwSurfaceError> where
S: AsRef<str>,
Create a GlfwSurface
.
pub fn back_buffer(
&mut self
) -> Result<Framebuffer<GL33, Dim2, (), ()>, FramebufferError>
[src]
&mut self
) -> Result<Framebuffer<GL33, Dim2, (), ()>, FramebufferError>
Get the back buffer.
Trait Implementations
impl GraphicsContext for GlfwSurface
[src]
type Backend = GL33
Internal type used by the backend to cache, optimize and store data. This roughly represents the GPU data / context a backend implementation needs to work correctly. Read more
fn backend(&mut self) -> &mut Self::Backend
[src]
fn new_pipeline_gate(&mut self) -> PipelineGate<'_, Self::Backend>
[src]
fn new_buffer<T>(
&mut self,
len: usize
) -> Result<Buffer<Self::Backend, T>, BufferError> where
T: Copy + Default,
Self::Backend: Buffer<T>,
[src]
&mut self,
len: usize
) -> Result<Buffer<Self::Backend, T>, BufferError> where
T: Copy + Default,
Self::Backend: Buffer<T>,
fn new_buffer_from_vec<T, X>(
&mut self,
vec: X
) -> Result<Buffer<Self::Backend, T>, BufferError> where
T: Copy,
X: Into<Vec<T>>,
Self::Backend: Buffer<T>,
[src]
&mut self,
vec: X
) -> Result<Buffer<Self::Backend, T>, BufferError> where
T: Copy,
X: Into<Vec<T>>,
Self::Backend: Buffer<T>,
fn new_buffer_repeating<T>(
&mut self,
len: usize,
value: T
) -> Result<Buffer<Self::Backend, T>, BufferError> where
T: Copy,
Self::Backend: Buffer<T>,
[src]
&mut self,
len: usize,
value: T
) -> Result<Buffer<Self::Backend, T>, BufferError> where
T: Copy,
Self::Backend: Buffer<T>,
fn new_framebuffer<D, CS, DS>(
&mut self,
size: <D as Dimensionable>::Size,
mipmaps: usize,
sampler: Sampler
) -> Result<Framebuffer<Self::Backend, D, CS, DS>, FramebufferError> where
CS: ColorSlot<Self::Backend, D>,
D: Dimensionable,
DS: DepthSlot<Self::Backend, D>,
Self::Backend: Framebuffer<D>,
[src]
&mut self,
size: <D as Dimensionable>::Size,
mipmaps: usize,
sampler: Sampler
) -> Result<Framebuffer<Self::Backend, D, CS, DS>, FramebufferError> where
CS: ColorSlot<Self::Backend, D>,
D: Dimensionable,
DS: DepthSlot<Self::Backend, D>,
Self::Backend: Framebuffer<D>,
fn new_shader_stage<R>(
&mut self,
ty: StageType,
src: R
) -> Result<Stage<Self::Backend>, StageError> where
R: AsRef<str>,
Self::Backend: Shader,
[src]
&mut self,
ty: StageType,
src: R
) -> Result<Stage<Self::Backend>, StageError> where
R: AsRef<str>,
Self::Backend: Shader,
fn new_shader_program<Sem, Out, Uni>(
&mut self
) -> ProgramBuilder<'_, Self, Sem, Out, Uni> where
Sem: Semantics,
Self::Backend: Shader,
[src]
&mut self
) -> ProgramBuilder<'_, Self, Sem, Out, Uni> where
Sem: Semantics,
Self::Backend: Shader,
fn new_tess(
&mut self
) -> TessBuilder<'_, Self::Backend, (), (), (), Interleaved> where
Self::Backend: Tess<(), (), (), Interleaved>,
[src]
&mut self
) -> TessBuilder<'_, Self::Backend, (), (), (), Interleaved> where
Self::Backend: Tess<(), (), (), Interleaved>,
fn new_deinterleaved_tess<V, W>(
&mut self
) -> TessBuilder<'_, Self::Backend, V, (), W, Deinterleaved> where
V: TessVertexData<Deinterleaved>,
W: TessVertexData<Deinterleaved>,
Self::Backend: Tess<V, (), W, Deinterleaved>,
[src]
&mut self
) -> TessBuilder<'_, Self::Backend, V, (), W, Deinterleaved> where
V: TessVertexData<Deinterleaved>,
W: TessVertexData<Deinterleaved>,
Self::Backend: Tess<V, (), W, Deinterleaved>,
fn new_texture<D, P>(
&mut self,
size: <D as Dimensionable>::Size,
mipmaps: usize,
sampler: Sampler
) -> Result<Texture<Self::Backend, D, P>, TextureError> where
D: Dimensionable,
P: Pixel,
Self::Backend: Texture<D, P>,
[src]
&mut self,
size: <D as Dimensionable>::Size,
mipmaps: usize,
sampler: Sampler
) -> Result<Texture<Self::Backend, D, P>, TextureError> where
D: Dimensionable,
P: Pixel,
Self::Backend: Texture<D, P>,
Auto Trait Implementations
impl !RefUnwindSafe for GlfwSurface
impl !Send for GlfwSurface
impl !Sync for GlfwSurface
impl Unpin for GlfwSurface
impl !UnwindSafe for GlfwSurface
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, 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>,