mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Implement gl.getParameter(gl.MAX_VIEWPORT_DIMS)
This commit is contained in:
parent
0e6bec65bb
commit
31774e9203
6 changed files with 24 additions and 21 deletions
|
@ -268,6 +268,7 @@ pub enum WebGLCommand {
|
|||
GetParameterBool(ParameterBool, WebGLSender<bool>),
|
||||
GetParameterBool4(ParameterBool4, WebGLSender<[bool; 4]>),
|
||||
GetParameterInt(ParameterInt, WebGLSender<i32>),
|
||||
GetParameterInt2(ParameterInt2, WebGLSender<[i32; 2]>),
|
||||
GetParameterInt4(ParameterInt4, WebGLSender<[i32; 4]>),
|
||||
GetParameterFloat(ParameterFloat, WebGLSender<f32>),
|
||||
GetParameterFloat2(ParameterFloat2, WebGLSender<[f32; 2]>),
|
||||
|
@ -522,6 +523,9 @@ parameters! {
|
|||
SubpixelBits = gl::SUBPIXEL_BITS,
|
||||
UnpackAlignment = gl::UNPACK_ALIGNMENT,
|
||||
}),
|
||||
Int2(ParameterInt2 {
|
||||
MaxViewportDims = gl::MAX_VIEWPORT_DIMS,
|
||||
}),
|
||||
Int4(ParameterInt4 {
|
||||
ScissorBox = gl::SCISSOR_BOX,
|
||||
Viewport = gl::VIEWPORT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue