Struct glw::GLContext [−][src]
pub struct GLContext {}
wrapper around raw opengl calls to interface with the graphics API
Methods
impl GLContext
[src]
impl GLContext
pub fn new(window: &mut Window) -> GLContext
[src]
pub fn new(window: &mut Window) -> GLContext
pub fn set_debug(&self) -> &Self
[src]
pub fn set_debug(&self) -> &Self
pub fn set_viewport(&self, x: i32, y: i32, width: i32, height: i32) -> &Self
[src]
pub fn set_viewport(&self, x: i32, y: i32, width: i32, height: i32) -> &Self
Set's the current active viewport
pub fn clear(&self, color: Option<Color>) -> &Self
[src]
pub fn clear(&self, color: Option<Color>) -> &Self
Clears the current bound render target
pub fn bind_pipeline(&self, program: &GraphicsPipeline)
[src]
pub fn bind_pipeline(&self, program: &GraphicsPipeline)
Binds a shader program
pub fn bind_rt(&self, rt: &RenderTarget)
[src]
pub fn bind_rt(&self, rt: &RenderTarget)
Binds a render target for drawing