Kiwi.Renderers.GLTextureWrapper Class
Wraps a webGL texture object
Constructor
Kiwi.Renderers.GLTextureWrapper
(
Kiwi.Renderers.GLTextureWrapper
-
gl
-
[_image]
Parameters:
-
gl
WebGLRenderingContext -
[_image]
HTMLImageElement optional
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
created
Boolean
Returns whether the texture has been created
image
HTMLImageElement
public
texture
WebGLTexture
public
uploaded
Boolean
Returns whether the texture has been uploaded to video memory