Constructor
new QuerySet(type, count)
Creates a new QuerySet.
Parameters:
Name | Type | Description |
---|---|---|
type | QUERYSET_TYPE | The type of the query set. |
count | number | The number of queries in the set. |
Extends
Members
conservative :boolean
Indicates whether the query set operates in conservative mode. This property only applies to occlusion query sets in WebGL renderer.
Type:
- boolean
- Default Value
- true
(readonly) count :number
The max number of queries in the set.
Type:
- number
(readonly) id :number
Unique number for this query set instance.
Type:
- number
name :string
The name of the query set.
Type:
- string
- Default Value
- ""
(readonly) type :QUERYSET_TYPE
The type of the query set.
Type:
Methods
addEventListener(type, listener)
Adds a listener to an event type.
Parameters:
Name | Type | Description |
---|---|---|
type | string | The type of event to listen to. |
listener | function | The function that gets called when the event is fired. |
- Overrides
dispatchEvent(event)
Fire an event.
Parameters:
Name | Type | Description |
---|---|---|
event | object | The event that gets fired. |
- Overrides
dispose()
Dispose this query set.
removeEventListener(type, listener)
Removes a listener from an event type.
Parameters:
Name | Type | Description |
---|---|---|
type | string | The type of the listener that gets removed. |
listener | function | The listener function that gets removed. |
- Overrides