Fork me on GitHub

API Documentation


Extends GLGE.Object.
A quake MD2 model class
Defined in: glge_md2.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
GLGE.MD2(uid)
Method Summary
Method Attributes Method Name and Description
 
animate(now, nocache)
 
Gets a list of availalbe animations
 
Should GLGE Generate the tangents for the model
 
setMD2Animation(framerate, loop)
Sets the MD2 animation
 
setMD2Frame(frame)
Sets the MD2 frame number
 
setMD2FrameRate(framerate)
Sets the MD2 framerate
 
setSrc(url, relativeTo)
Sets the url of the MD2 model
Methods borrowed from class GLGE.Object:
addMultiMaterial, downloadComplete, getBoundingVolume, getCastShadows, getCull, getDepthTest, getDrawType, getLineWidth, getMaterial, getMesh, getMeshBlendFactor, getMultiMaterials, getPickable, getPointSize, getSkeleton, getUniform, getUniformType, getVertexShaderInjection, getVisible, isComplete, isZtransparent, setCastShadows, setCull, setDepthTest, setDrawType, setLineWidth, setMaterial, setMesh, setMeshBlendFactor, setMeshFrame1, setMeshFrame2, setPickable, setPointSize, setSkeleton, setUniform, setVertexShaderInjection, setVisible, setZtransparent
Methods borrowed from class GLGE.Animatable:
blendTo, getAnimation, getBlendFunction, getFrameNumber, getFrameRate, getLoop, getName, getPaused, isLooping, setAnimation, setBlendFunction, setFrameRate, setLoop, setName, setPaused, setStartFrame, togglePaused
Methods borrowed from class GLGE.Events:
addEventListener, fireEvent, removeEventListener
Methods borrowed from class GLGE.Placeable:
clearStaticMatrix, getDLocX, getDLocY, getDLocZ, getDRotX, getDRotY, getDRotZ, getDScaleX, getDScaleY, getDScaleZ, getId, getInverseModelMatrix, getLocalMatrix, getLocX, getLocY, getLocZ, getLookat, getModelMatrix, getPosition, getQuatW, getQuatX, getQuatY, getQuatZ, getRef, getRoot, getRotation, getRotMatrix, getRotOrder, getRotX, getRotY, getRotZ, getScale, getScaleMatrix, getScaleX, getScaleY, getScaleZ, getTranslateMatrix, getTransposeInverseModelMatrix, getTransposeModelMatrix, getUpAxis, Lookat, move, setDLoc, setDLocX, setDLocY, setDLocZ, setDRot, setDRotX, setDRotY, setDRotZ, setDScale, setDScaleX, setDScaleY, setDScaleZ, setId, setLoc, setLocX, setLocY, setLocZ, setLookat, setQuat, setQuatW, setQuatX, setQuatY, setQuatZ, setRot, setRotMatrix, setRotOrder, setRotX, setRotY, setRotZ, setScale, setScaleX, setScaleY, setScaleZ, setStaticMatrix, setTransformMode, setUpAxis
Methods borrowed from class GLGE.QuickNotation:
_
Methods borrowed from class GLGE.JSONLoader:
getDownloadPriority, setDownloadPriority, setJSONSrc, setJSONString
Event Summary
Event Attributes Event Name and Description
 
Events borrowed from class GLGE.Object:
downloadComplete, willRender
Events borrowed from class GLGE.Animatable:
animFinished
Events borrowed from class GLGE.Placeable:
appened, childMatrixUpdate, matrixUpdate, removed
Class Detail
GLGE.MD2(uid)
Parameters:
uid
Method Detail
animate(now, nocache)
Parameters:
now
nocache

{array} getAnimations()
Gets a list of availalbe animations
Returns:
{array} array

setAutoTangents(value)
Should GLGE Generate the tangents for the model
Parameters:
{boolean} value
tflag inidcating auto generation of tangents

setMD2Animation(framerate, loop)
Sets the MD2 animation
Parameters:
{string} framerate
the MD2 files framerate
loop

setMD2Frame(frame)
Sets the MD2 frame number
Parameters:
{string} frame
the frame to display

setMD2FrameRate(framerate)
Sets the MD2 framerate
Parameters:
{string} framerate
the MD2 files framerate

setSrc(url, relativeTo)
Sets the url of the MD2 model
Parameters:
{string} url
the url to the MD2 file
relativeTo
Event Detail
md2AnimFinished(data)
Parameters:
{object} data

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Feb 12 2012 14:20:23 GMT+0000 (GMT)