WebGLRenderingContext getters and getParameter

This implements the `canvas`, `drawingBufferHeight` and
`drawingBufferWidth` getters to `WebGLRenderingContext`, and an initial
version of `getParameter`.
This commit is contained in:
ecoal95 2015-06-01 13:34:28 +02:00
parent 0de09b936e
commit eff2bb4310
6 changed files with 89 additions and 13 deletions

View file

@ -90,6 +90,8 @@ pub enum CanvasWebGLMsg {
UseProgram(u32),
VertexAttribPointer2f(u32, i32, bool, i32, i64),
Viewport(i32, i32, i32, i32),
DrawingBufferWidth(Sender<i32>),
DrawingBufferHeight(Sender<i32>),
}
#[derive(Clone)]