B2G/gecko/browser/devtools/tilt/TiltGL.jsm
/**
   * Initializes a texture from a pre-existing image or canvas.
   *
   * @param {Image} aImage
   *                the source image or canvas
   * @param {Object} aProperties
   *                 an object containing the following properties:
   *         {Image} source: the source image for the texture
   *        {String} format: the format of the texture ("RGB" or "RGBA")
   *        {String} fill: optional, color to fill the transparent bits
   *        {String} stroke: optional, color to draw an outline
   *        {Number} strokeWeight: optional, the width of the outline
   *        {String} minFilter: either "nearest" or "linear"
   *        {String} magFilter: either "nearest" or "linear"
   *        {String} wrapS: either "repeat" or "clamp"
   *        {String} wrapT: either "repeat" or "clamp"
   *       {Boolean} mipmap: true if should generate mipmap
   */
Initializes a texture from a pre-existing image or canvas.
Initializes a texture from a pre - existing image or canvas .
function TGLT_initTexture(aProperties)
  {
    this._ref = TiltGL.TextureUtils.create(this._context, aProperties);
    this._id = this._ref.id;
    this.width = this._ref.width;
    this.height = this._ref.height;
    this.loaded = true;
    delete this._ref.id;
    delete this._ref.width;
    delete this._ref.height;
    delete this.onload;
  }
function TGLT_initTexture ( aProperties ) { this . _ref = TiltGL . TextureUtils . create ( this . _context , aProperties ) ; this . _id = this . _ref . id ; this . width = this . _ref . width ; this . height = this . _ref . height ; this . loaded = true ; delete this . _ref . id ; delete this . _ref . width ; delete this . _ref . height ; delete this . onload ; }
Initializes a texture from a pre-existing image or canvas.
Initializes a texture from a pre - existing image or canvas .
// cache for faster access // cleanup