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