Kiwi.Renderers.TextureAtlasRenderer Class
The Renderer object for rendering Texture Atlases
Constructor
Kiwi.Renderers.TextureAtlasRenderer
(
Kiwi.Renderers.TextureAtlasRenderer
-
gl
-
shaderManager
-
[params=null]
Parameters:
-
gl
WebGLRenderingContext -
shaderManager
Kiwi.Shaders.ShaderManager -
[params=null]
Object optional
Returns:
Item Index
Methods
Properties
Methods
_collateVertexAttributeArrays
(
public
-
gl
-
entity
-
camera
Collates all xy and uv coordinates into a buffer ready for upload to viceo memory
Parameters:
-
gl
WebGLRenderingContext -
entity
Kiwi.Entity -
camera
Camera
_generateIndices
(
private
-
numQuads
Generates quad indices
Parameters:
-
numQuads
Number
clear
(
public
-
gl
Clears the vertex buffer.
Parameters:
-
gl
WebGLRenderingCotext
concatBatch
(
public
-
vertexItems
Adds an array of precalculated xyuv values to the item array
Parameters:
-
vertexItems
Array
disable
(
public
-
gl
Disables the renderer
Parameters:
-
gl
WebGLRenderingCotext
draw
(
public
-
gl
Makes a draw call, this is where things actually get rendered to the draw buffer (or a framebuffer).
Parameters:
-
gl
WebGLRenderingCotext
enable
(
public
-
gl
-
[params=null]
Enables the renderer ready for drawing
Parameters:
-
gl
WebGLRenderingCotext -
[params=null]
Object optional
updateStageResolution
(
public
-
gl
-
res
Updates the stage resolution uniforms
Parameters:
-
gl
WebGLRenderingCotext -
res
Float32Array
updateTextureSize
(
public
-
gl
-
size
Updates the texture size uniforms
Parameters:
-
gl
WebGLRenderingCotext -
size
Float32Array
Properties
_maxItems
Number
private
The maximum number of items that can be rendered by the renderer (not enforced)
RENDERER_ID
Array
public
static
The identifier for this renderer.
shaderPair
Kiwi.Shaders.TextureAtlasShade
public
The shaderPair that this renderer uses.