Module: ColladaUtils

Provides utilities for the ColladaLoader.
Source:

Methods

(static) bufferDataFloat32(xmlNode)

Packs data from a node as a Float32Array. Internal. Applications should not call this function.
Parameters:
Name Type Description
xmlNode Node A node from which to extract values.
Source:

(static) bufferDataUInt32(xmlNode)

Packs data from a node as a UInt32Array. Internal. Applications should not call this function.
Parameters:
Name Type Description
xmlNode Node A node from which to extract values.
Source:

(static) fetchFile(url, cb)

Fetches a file.
Parameters:
Name Type Description
url String The path to the collada file.
cb function A callback function to call when the collada file loaded.
Source:

(static) getFilename(filePath)

Returns the filename without slashes. Internal. Applications should not call this function.
Parameters:
Name Type Description
filePath String
Source:

(static) getFirstChildElement(xmlNode, nodeName)

Returns the first child of a node. Internal. Applications should not call this function.
Parameters:
Name Type Description
xmlNode Node The tag to look in.
nodeName String Optional parameter, the name of the child.
Source:

(static) getRawValues(xmlNode)

Packs data from a node in an array. Internal. Applications should not call this function.
Parameters:
Name Type Description
xmlNode Node A node from which to extract values.
Source:

(static) getTextureType(uvs)

Determines the rendering method for a texture. The method can be CLAMP or REPEAT. Internal. Applications should not call this function.
Parameters:
Name Type Description
uvs Array.<Number> The uvs array.
Source:

(static) querySelectorById(nodes, id)

Finds a node by id. Internal. Applications should not call this function.
Parameters:
Name Type Description
nodes NodeList A list of nodes to look in.
id String The id of the node to search for.
Source:

(static) replaceSpace(str)

Replaces the spaces in a string with an "_". Internal. Applications should not call this function.
Parameters:
Name Type Description
str String
Source: