Kiwi.Renderers.GLTextureWrapper Class
Wraps a webGL texture object
Constructor
Kiwi.Renderers.GLTextureWrapper
(
Kiwi.Renderers.GLTextureWrapper
-
gl
-
atlas
Parameters:
-
gl
WebGLRenderingContext -
atlas
Kiwi.Textures.TextureAtlasThe wrapper will default to wrapping atlas.image.
Returns:
Item Index
Methods
createTexture
(
public
-
gl
Creates a webgl texture object
Parameters:
-
gl
WebGLRenderingContext
deleteTexture
(
public
-
gl
Deletes a webgl texture
Parameters:
-
gl
WebGLRenderingContext
refreshTexture
(
public
-
gl
Re-uploads a webgl texture object to video memory
Parameters:
-
gl
WebGLRenderingContext
uploadTexture
(
public
-
gl
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.
texture
WebGLTexture
public
uploaded
Boolean
Returns whether the texture has been uploaded to video memory