Struct glw::glcontext::GLContext [−][src]
pub struct GLContext;
An openGL wrapper that is used to interface with openGL.
Methods
impl GLContext
[src]
impl GLContext
pub fn new(window: &mut Window) -> GLContext
[src]
pub fn new(window: &mut Window) -> GLContext
Creates anew OpenGL Context and links up the procedure address getter
pub fn set_debug(&mut self) -> &Self
[src]
pub fn set_debug(&mut self) -> &Self
Enables the OpenGL debug callbacks. This is only available in debug configurations
pub fn set_viewport(&mut self, x: i32, y: i32, width: i32, height: i32) -> &Self
[src]
pub fn set_viewport(&mut self, x: i32, y: i32, width: i32, height: i32) -> &Self
Set's the current active viewport
pub fn clear(&mut self, color: Option<Color>) -> &Self
[src]
pub fn clear(&mut self, color: Option<Color>) -> &Self
Clears the current bound render target
pub fn bind_image(&mut self, rt: &RenderTarget)
[src]
pub fn bind_image(&mut self, rt: &RenderTarget)
pub fn bind_pipeline(&mut self, program: &GraphicsPipeline)
[src]
pub fn bind_pipeline(&mut self, program: &GraphicsPipeline)
Binds a shader program
pub fn bind_rt(&mut self, rt: &RenderTarget)
[src]
pub fn bind_rt(&mut self, rt: &RenderTarget)
Binds a render target for drawing
pub fn dispatch_compute(&mut self, groups_x: u32, groups_y: u32, groups_z: u32)
[src]
pub fn dispatch_compute(&mut self, groups_x: u32, groups_y: u32, groups_z: u32)
pub fn memory_barrier(&mut self, barrier: MemoryBarrier)
[src]
pub fn memory_barrier(&mut self, barrier: MemoryBarrier)