Class: Query

Query()

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).
Source:

Methods

begin() → {Query}

Begin a query.
Source:
Returns:
The Query object.
Type
Query

delete() → {Query}

Delete this query.
Source:
Returns:
The Query object.
Type
Query

end() → {Query}

End a query.
Source:
Returns:
The Query object.
Type
Query

ready() → {boolean}

Check if query result is available.
Source:
Returns:
If results are available.
Type
boolean

restore() → {Query}

Restore query after context loss.
Source:
Returns:
The Query object.
Type
Query