Class/Object

io.scalajs.dom.html.pixijs

BaseTexture

Related Docs: object BaseTexture | package pixijs

Permalink

class BaseTexture extends Object

A texture stores the information that represents an image. All textures have a base texture.

Annotations
@RawJSType() @native() @JSName( "PIXI.BaseTexture" )
Linear Supertypes
Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BaseTexture
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BaseTexture()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def destroy(): Unit

    Permalink

    Destroys this base texture

  7. def dispose(): Unit

    Permalink

    Frees the texture from WebGL memory without destroying this texture object.

    Frees the texture from WebGL memory without destroying this texture object. This means you can still use the texture later which will upload it to GPU memory again.

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hasLoaded: Boolean

    Permalink

    Set to true once the base texture has successfully loaded.

    Set to true once the base texture has successfully loaded. This is never true if the underlying source fails to load or has no texture data.

  13. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. def height: Double

    Permalink

    The height of the base texture set when the image has loaded

  16. var imageUrlstring: String

    Permalink

    TODO

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def isLoading: Boolean

    Permalink

    Set to true if the source is currently loading.

    Set to true if the source is currently loading. If an Image source is loading the 'loaded' or 'error' event will be dispatched when the operation ends. An underyling source that is immediately-available bypasses loading entirely.

  19. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  20. def loadSource(source: |[Image, HTMLCanvasElement]): Unit

    Permalink

    Load a source.

    Load a source. If the source is not-immediately-available, such as an image that needs to be downloaded, then the 'loaded' or 'error' event will be dispatched in the future and hasLoaded will remain false after this call.

    source

    the source object of the texture.

  21. var mipmap: Boolean

    Permalink

    Set this to true if a mipmap of this texture needs to be generated.

    Set this to true if a mipmap of this texture needs to be generated. This value needs to be set before the texture is used Also the texture must be a power of two size to work.

  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def on(event: String, callback: Function): BaseTexture.this.type

    Permalink
  26. var premultipliedAlpha: Boolean

    Permalink

    Controls if RGB channels should be pre-multiplied by Alpha (WebGL only)

  27. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  28. def realHeight: Double

    Permalink

    Used to store the actual height of the source of this texture

  29. def realWidth: Double

    Permalink

    Used to store the actual width of the source of this texture

  30. var resolution: Resolution

    Permalink

    The Resolution of the texture.

  31. var scaleMode: Int

    Permalink

    The scale mode to apply when scaling this texture

    The scale mode to apply when scaling this texture

    See also

    PIXI.SCALE_MODES

  32. def source: Any

    Permalink

    The image source that is used to create the texture.

    The image source that is used to create the texture.

    returns

    an image or the canvas

  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. def update(): Unit

    Permalink

    Updates the texture on all the webgl renderers, this also assumes the src has changed.

  37. def updateSourceImage(newSrc: String): Unit

    Permalink

    Changes the source image of the texture.

    Changes the source image of the texture. The original source must be an Image element.

    newSrc

    the path of the image

  38. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  39. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def width: Double

    Permalink

    The width of the base texture set when the image has loaded

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped