mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Expose WebGL-related interfaces only in Window
This commit is contained in:
parent
6210bede8b
commit
8af2327e95
26 changed files with 82 additions and 67 deletions
|
@ -6,6 +6,7 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.7
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
interface WebGLActiveInfo {
|
||||
readonly attribute GLint size;
|
||||
readonly attribute GLenum type;
|
||||
|
|
|
@ -6,5 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.4
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
interface WebGLBuffer : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.15
|
||||
[Constructor(DOMString type, optional WebGLContextEventInit eventInit)]
|
||||
[Constructor(DOMString type, optional WebGLContextEventInit eventInit),
|
||||
Exposed=Window]
|
||||
interface WebGLContextEvent : Event {
|
||||
readonly attribute DOMString statusMessage;
|
||||
};
|
||||
|
|
|
@ -6,5 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.7
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
interface WebGLFramebuffer : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -6,5 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.3
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
interface WebGLObject {
|
||||
};
|
||||
|
|
|
@ -6,5 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.6
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
interface WebGLProgram : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -6,5 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.5
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
interface WebGLRenderbuffer : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -41,7 +41,7 @@ dictionary WebGLContextAttributes {
|
|||
GLboolean failIfMajorPerformanceCaveat = false;
|
||||
};
|
||||
|
||||
[NoInterfaceObject]
|
||||
[Exposed=Window, NoInterfaceObject]
|
||||
interface WebGLRenderingContextBase
|
||||
{
|
||||
|
||||
|
@ -762,6 +762,7 @@ interface WebGLRenderingContextBase
|
|||
void viewport(GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface WebGLRenderingContext
|
||||
{
|
||||
};
|
||||
|
|
|
@ -6,5 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.8
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
interface WebGLShader : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.7
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
interface WebGLShaderPrecisionFormat {
|
||||
readonly attribute GLint rangeMin;
|
||||
readonly attribute GLint rangeMax;
|
||||
|
|
|
@ -6,5 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/#5.9
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
interface WebGLTexture : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -6,5 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.10
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
interface WebGLUniformLocation {
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue