Struct asi_opengl::OpenGL [−][src]
pub struct OpenGL(_);
The OpenGL context.
Methods
impl OpenGL
[src]
impl OpenGL
pub fn color(&self, r: f32, g: f32, b: f32)
[src]
pub fn color(&self, r: f32, g: f32, b: f32)
Set the color for clear
.
pub fn update(&self)
[src]
pub fn update(&self)
Update the screen
pub fn enable(&self, what: Feature)
[src]
pub fn enable(&self, what: Feature)
Enable something
pub fn disable(&self, what: Feature)
[src]
pub fn disable(&self, what: Feature)
Disable something
pub fn blend(&self)
[src]
pub fn blend(&self)
Configure blending
pub fn texture(&self) -> Texture
[src]
pub fn texture(&self) -> Texture
Create a new texture.
pub fn viewport(&self, w: u32, h: u32)
[src]
pub fn viewport(&self, w: u32, h: u32)
Update the viewport.