src/drawable/inventory.js
/**
 * Creates a media item
 *
 * @private
 * @param  {String} name Media mesh internal name
 * @return {media}       A TexturedDrawable with the Textured program,
 *                       the specified mesh, and the flipcard texture.
 */
Creates a media item
@private
@param  {String} name Media mesh internal name
@return {media}       A TexturedDrawable with the Textured program,
the specified mesh, and the flipcard texture.
Creates a media item @private @param { String } name Media mesh internal name @return { media } A TexturedDrawable with the Textured program the specified mesh and the flipcard texture .
function createMedia(name) {
  class media extends TexturedDrawable {
    constructor() {
      super(
        Constants.Program.Textured,
        meshes[name],
        Constants.Texture.FlipCard
      );
    }
  }
  return media;
}
function createMedia ( name ) { class media extends TexturedDrawable { constructor ( ) { super ( Constants . Program . Textured , meshes [ name ] , Constants . Texture . FlipCard ) ; } } return media ; }
Creates a media item
 @private
 @param  {String} name Media mesh internal name
 @return {media}       A TexturedDrawable with the Textured program,
                       the specified mesh, and the flipcard texture.
Creates a media item @private @param { String } name Media mesh internal name @return { media } A TexturedDrawable with the Textured program the specified mesh and the flipcard texture .