new Query()
Generic query object.
Properties:
Name | Type | Description |
---|---|---|
gl |
WebGLRenderingContext | The WebGL context. |
query |
WebGLQuery | Query object. |
target |
GLenum | The type of information being queried. |
active |
boolean | Whether or not a query is currently in progress. |
result |
Any | The result of the query (only available after a call to ready() returns true). |
Methods
begin() → {Query}
Begin a query.
Returns:
The Query object.
- Type
- Query
delete() → {Query}
Delete this query.
Returns:
The Query object.
- Type
- Query
end() → {Query}
End a query.
Returns:
The Query object.
- Type
- Query
ready() → {boolean}
Check if query result is available.
Returns:
If results are available.
- Type
- boolean
restore() → {Query}
Restore query after context loss.
Returns:
The Query object.
- Type
- Query