ResourceManager constructor

ResourceManager(
  1. GL2 _gl,
  2. Audio _audio,
  3. Loader _loadingInfo
)

Creates a new ResourceManager.

  • _gl: The WebGL2 rendering context.
  • _audio: The audio system for sound playback.
  • _loadingInfo: The loader instance to track resource loading progress.

Typically, you don't instantiate this class yourself. Instead, you use the app.resources member provided by the App class.

Implementation

ResourceManager(this._gl, this._audio, this._loadingInfo);