Struct luminance_glfw::GL33Context
source · [−]pub struct GL33Context {
pub window: Window,
/* private fields */
}
Expand description
Luminance OpenGL 3.3 context.
This type also re-exports the GLFW window, if you need access to it.
Fields
window: Window
Wrapped GLFW window.
Implementations
sourceimpl GL33Context
impl GL33Context
sourcepub fn back_buffer(
&mut self
) -> Result<Framebuffer<GL33, Dim2, (), ()>, FramebufferError>
pub fn back_buffer(
&mut self
) -> Result<Framebuffer<GL33, Dim2, (), ()>, FramebufferError>
Get the back buffer.
Trait Implementations
sourceimpl Debug for GL33Context
impl Debug for GL33Context
sourceimpl GraphicsContext for GL33Context
impl GraphicsContext for GL33Context
type Backend = GL33
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
sourcefn query(&mut self) -> Query<'_, Self::Backend> where
Self::Backend: Query,
fn query(&mut self) -> Query<'_, Self::Backend> where
Self::Backend: Query,
Access the query API.
sourcefn new_pipeline_gate(&mut self) -> PipelineGate<'_, Self::Backend>
fn new_pipeline_gate(&mut self) -> PipelineGate<'_, Self::Backend>
Create a new pipeline gate
sourcefn 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
D: Dimensionable,
CS: ColorSlot<Self::Backend, D>,
DS: DepthStencilSlot<Self::Backend, D>,
Self::Backend: Framebuffer<D>,
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
D: Dimensionable,
CS: ColorSlot<Self::Backend, D>,
DS: DepthStencilSlot<Self::Backend, D>,
Self::Backend: Framebuffer<D>,
Create a new framebuffer. Read more
sourcefn new_shader_stage<R>(
&mut self,
ty: StageType,
src: R
) -> Result<Stage<Self::Backend>, StageError> where
R: AsRef<str>,
Self::Backend: Shader,
fn new_shader_stage<R>(
&mut self,
ty: StageType,
src: R
) -> Result<Stage<Self::Backend>, StageError> where
R: AsRef<str>,
Self::Backend: Shader,
Create a new shader stage. Read more
sourcefn new_shader_program<Sem, Out, Uni>(
&mut self
) -> ProgramBuilder<'_, Self, Sem, Out, Uni> where
Sem: Semantics,
Self::Backend: Shader,
fn new_shader_program<Sem, Out, Uni>(
&mut self
) -> ProgramBuilder<'_, Self, Sem, Out, Uni> where
Sem: Semantics,
Self::Backend: Shader,
Create a new shader program. Read more
sourcefn new_shader_data<T>(
&mut self,
values: impl IntoIterator<Item = T>
) -> Result<ShaderData<Self::Backend, T>, ShaderDataError> where
Self::Backend: ShaderData<T>,
fn new_shader_data<T>(
&mut self,
values: impl IntoIterator<Item = T>
) -> Result<ShaderData<Self::Backend, T>, ShaderDataError> where
Self::Backend: ShaderData<T>,
Create a new shader data. Read more
sourcefn new_tess(
&mut self
) -> TessBuilder<'_, Self::Backend, (), (), (), Interleaved> where
Self::Backend: Tess<(), (), (), Interleaved>,
fn new_tess(
&mut self
) -> TessBuilder<'_, Self::Backend, (), (), (), Interleaved> where
Self::Backend: Tess<(), (), (), Interleaved>,
Create a TessBuilder
. Read more
sourcefn 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>,
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>,
Create a TessBuilder
with deinterleaved memory. Read more
sourcefn new_texture<D, P>(
&mut self,
size: <D as Dimensionable>::Size,
sampler: Sampler,
texels: TexelUpload<'_, [<P as Pixel>::Encoding]>
) -> Result<Texture<Self::Backend, D, P>, TextureError> where
D: Dimensionable,
P: Pixel,
Self::Backend: Texture<D, P>,
fn new_texture<D, P>(
&mut self,
size: <D as Dimensionable>::Size,
sampler: Sampler,
texels: TexelUpload<'_, [<P as Pixel>::Encoding]>
) -> Result<Texture<Self::Backend, D, P>, TextureError> where
D: Dimensionable,
P: Pixel,
Self::Backend: Texture<D, P>,
Create a new texture from texels. Read more
sourcefn new_texture_raw<D, P>(
&mut self,
size: <D as Dimensionable>::Size,
sampler: Sampler,
texels: TexelUpload<'_, [<P as Pixel>::RawEncoding]>
) -> Result<Texture<Self::Backend, D, P>, TextureError> where
D: Dimensionable,
P: Pixel,
Self::Backend: Texture<D, P>,
fn new_texture_raw<D, P>(
&mut self,
size: <D as Dimensionable>::Size,
sampler: Sampler,
texels: TexelUpload<'_, [<P as Pixel>::RawEncoding]>
) -> Result<Texture<Self::Backend, D, P>, TextureError> where
D: Dimensionable,
P: Pixel,
Self::Backend: Texture<D, P>,
Create a new texture from raw texels. Read more
Auto Trait Implementations
impl !RefUnwindSafe for GL33Context
impl !Send for GL33Context
impl !Sync for GL33Context
impl Unpin for GL33Context
impl !UnwindSafe for GL33Context
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more