mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement gl.getParameter(gl.VIEWPORT)
This commit is contained in:
parent
cb6fa6e6b0
commit
e34b19c42c
5 changed files with 120 additions and 27 deletions
|
@ -260,7 +260,8 @@ pub enum WebGLCommand {
|
|||
VertexAttrib(u32, f32, f32, f32, f32),
|
||||
VertexAttribPointer(u32, i32, u32, bool, i32, u32),
|
||||
VertexAttribPointer2f(u32, i32, bool, i32, u32),
|
||||
Viewport(i32, i32, i32, i32),
|
||||
GetViewport(WebGLSender<(i32, i32, i32, i32)>),
|
||||
SetViewport(i32, i32, i32, i32),
|
||||
TexImage2D(u32, i32, i32, i32, i32, u32, u32, Vec<u8>),
|
||||
TexParameteri(u32, u32, i32),
|
||||
TexParameterf(u32, u32, f32),
|
||||
|
@ -532,7 +533,8 @@ impl fmt::Debug for WebGLCommand {
|
|||
VertexAttrib(..) => "VertexAttrib",
|
||||
VertexAttribPointer2f(..) => "VertexAttribPointer2f",
|
||||
VertexAttribPointer(..) => "VertexAttribPointer",
|
||||
Viewport(..) => "Viewport",
|
||||
GetViewport(..) => "GetViewport",
|
||||
SetViewport(..) => "SetViewport",
|
||||
TexImage2D(..) => "TexImage2D",
|
||||
TexParameteri(..) => "TexParameteri",
|
||||
TexParameterf(..) => "TexParameterf",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue