mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
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:
parent
0de09b936e
commit
eff2bb4310
6 changed files with 89 additions and 13 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue