diff options
Diffstat (limited to 'components/canvas_traits/lib.rs')
-rw-r--r-- | components/canvas_traits/lib.rs | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/components/canvas_traits/lib.rs b/components/canvas_traits/lib.rs index 2ce53dfbb76..068eada3d9d 100644 --- a/components/canvas_traits/lib.rs +++ b/components/canvas_traits/lib.rs @@ -128,6 +128,16 @@ pub enum CanvasWebGLMsg { BufferData(u32, Vec<f32>, u32), Clear(u32), ClearColor(f32, f32, f32, f32), + ClearDepth(f64), + ClearStencil(i32), + ColorMask(bool, bool, bool, bool), + CullFace(u32), + FrontFace(u32), + DepthFunc(u32), + DepthMask(bool), + DepthRange(f64, f64), + Enable(u32), + Disable(u32), CompileShader(u32), CreateBuffer(IpcSender<Option<NonZero<u32>>>), CreateFramebuffer(IpcSender<Option<NonZero<u32>>>), @@ -151,12 +161,19 @@ pub enum CanvasWebGLMsg { GetShaderParameter(u32, u32, IpcSender<WebGLShaderParameter>), GetAttribLocation(u32, String, IpcSender<Option<i32>>), GetUniformLocation(u32, String, IpcSender<Option<i32>>), + PolygonOffset(f32, f32), + Hint(u32, u32), + LineWidth(f32), + PixelStorei(u32, i32), LinkProgram(u32), ShaderSource(u32, String), Uniform4fv(i32, Vec<f32>), UseProgram(u32), - VertexAttribPointer2f(u32, i32, bool, i32, i64), + VertexAttribPointer2f(u32, i32, bool, i32, u32), Viewport(i32, i32, i32, i32), + TexImage2D(u32, i32, i32, i32, i32, u32, u32, Vec<u8>), + TexParameteri(u32, u32, i32), + TexParameterf(u32, u32, f32), DrawingBufferWidth(IpcSender<i32>), DrawingBufferHeight(IpcSender<i32>), } |