API Docs for: 1.4.0
Show:

Kiwi.Renderers.GLTextureWrapper Class

Module: Renderers
Parent Module: Kiwi

Wraps a webGL texture object

Constructor

Kiwi.Renderers.GLTextureWrapper

(
  • gl
  • atlas
)
Kiwi.Renderers.GLTextureWrapper

Parameters:

Methods

createTexture

(
  • gl
)
public

Creates a webgl texture object

Parameters:

  • gl WebGLRenderingContext

deleteTexture

(
  • gl
)
public

Deletes a webgl texture

Parameters:

  • gl WebGLRenderingContext

refreshTexture

(
  • gl
)
public

Re-uploads a webgl texture object to video memory

Parameters:

  • gl WebGLRenderingContext

uploadTexture

(
  • gl
)
public

Uploads a webgl texture object to video memory

Parameters:

  • gl WebGLRenderingContext

Properties

_image

HTMLImageElement private

The image wrapped by this wrapper.

created

Boolean

Returns whether the texture has been created

image

HTMLImageElement public

The image wrapped by this wrapper.

numBytes

Kiwi.Textures.TextureAtlas

The number of bytes in the texture

texture

WebGLTexture public

textureAtlas

Kiwi.Textures.TextureAtlas

The textureAtlas used by the GLTexture

uploaded

Boolean

Returns whether the texture has been uploaded to video memory