Interface for Main like objects. This is used by Components to refer to main, avoiding circular references
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Returns the value of an attribute.
Override to implement getter for attributes
Returns the analyser instance that's used to get music data for the visualization
Returns the timestamp at which this instance was constructed
Returns A shader program that can be used to copy frames
Returns the rendering context for webgl rendering
Returns register bank, a map of shared register values available in EEL code in components.
Returns the Resource Manager that manages media resources
Returns a TextureSetManager for global temporary textures, that can be shared between components.
Add a listener to another EventEmitter.
This provides an event subscription list facility. Allowing subclasses to listen to other emitters and remove all or some listeners with a single call to Model.stopListening, later.
the event emitter to listen to
the name of the event to listen to
the callback for the event handler
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Add a listener for a given event.
Add a one-time listener for a given event.
Remove all listeners, or those of the specified event.
Remove the listeners of a given event.
Safely set an attribute(s).
If the attribute set succeeds, a
change:[attribute name] event is fired.
change:[attribute name] event handler receives
this object, the new
options as arguments.
change event is also fired when all changes succeed. The
this object and the
options as arguments.
the name of the attribute or map of values
the new value of the attribute
this object is sent down to the event handlers, useful to things down to your
options.silent is true then events are not fired.
Set value of a single attribute and returns boolean to indicate success.
Override this to implement attribute set logic
Removes to one or more listeners that were set earlier with calls to Model.listenTo.
Use the arguments to filter subscriptions. eg:
model.stopListening(em) will remove all
listeners on emitter
model.stopListening(em, 'change') will remove all listeners for
change event on emitter
the event emitter on which the listener was set
the event to be removed
the callback to be removed
Returns a JSON representation of the attributes.
Override to implement a JSON generation logic