mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +00:00
LibWeb/WebGL: Add a bunch of simple forwarding functions
This collection of functions simply check if the context is still alive, then forward the call to the GL context.
This commit is contained in:
parent
aa77c26b60
commit
39a212b54f
3 changed files with 183 additions and 0 deletions
|
@ -21,8 +21,32 @@ interface mixin WebGLRenderingContextBase {
|
|||
sequence<DOMString>? getSupportedExtensions();
|
||||
object? getExtension(DOMString name);
|
||||
|
||||
undefined activeTexture(GLenum texture);
|
||||
|
||||
undefined clear(GLbitfield mask);
|
||||
undefined clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
||||
undefined clearDepth(GLclampf depth);
|
||||
undefined clearStencil(GLint s);
|
||||
undefined colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
|
||||
|
||||
undefined cullFace(GLenum mode);
|
||||
|
||||
undefined depthFunc(GLenum func);
|
||||
undefined depthMask(GLboolean flag);
|
||||
|
||||
undefined finish();
|
||||
undefined flush();
|
||||
|
||||
undefined frontFace(GLenum mode);
|
||||
|
||||
undefined polygonOffset(GLfloat factor, GLfloat units);
|
||||
|
||||
undefined scissor(GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
|
||||
undefined stencilOp(GLenum fail, GLenum zfail, GLenum zpass);
|
||||
undefined stencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass);
|
||||
|
||||
undefined viewport(GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
|
||||
// Enums
|
||||
// ClearBufferMask
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue