API Documentation
Classes
- _global_
- GLGE
- GLGE.Action
- GLGE.ActionChannel
- GLGE.Animatable
- GLGE.AnimationCurve
- GLGE.AnimationVector
- GLGE.Assets
- GLGE.BezTriple
- GLGE.Camera
- GLGE.Collada
- GLGE.Document
- GLGE.DocumentPreloader
- GLGE.Events
- GLGE.FilePreloader
- GLGE.FilterAO
- GLGE.FilterGlow
- GLGE.Group
- GLGE.GUI
- GLGE.HeightMap
- GLGE.JSONLoader
- GLGE.KeyInput
- GLGE.Light
- GLGE.LinearPoint
- GLGE.Material
- GLGE.MaterialLayer
- GLGE.MD2
- GLGE.Mesh
- GLGE.Message
- GLGE.MouseInput
- GLGE.MultiMaterial
- GLGE.Object
- GLGE.ObjectLod
- GLGE.ParticleSystem
- GLGE.PhysicsAbstract
- GLGE.PhysicsBox
- GLGE.PhysicsCar
- GLGE.PhysicsConstraintPoint
- GLGE.PhysicsMesh
- GLGE.PhysicsPlane
- GLGE.PhysicsSphere
- GLGE.PhysicsWheel
- GLGE.Placeable
- GLGE.QuickNotation
- GLGE.Renderer
- GLGE.Scene
- GLGE.Sphere
- GLGE.StepPoint
- GLGE.Text
- GLGE.Texture
- GLGE.TextureCamera
- GLGE.TextureCanvas
- GLGE.TextureCube
- GLGE.TextureVideo
- GLGE.Wavefront
- GUI.Gadget
- GUI.Preloader
- GUI.Progressbar
- GUI.Widget
Extends
GLGE.Events.
Document preloader class
Defined in: glge_documentpreloader.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
GLGE.DocumentPreloader(doc, args)
|
| Method Attributes | Method Name and Description |
|---|---|
|
addImage(url)
Add an image, which should be loaded by the preloader.
|
|
|
changeState(newState)
Sets the state of the document preloader.
|
|
|
finish(event)
Called when the document preloader loaded all files.
|
|
|
Start loading all images in all xml files.
|
|
|
loadXMLFile(url)
This function loads a XML-file.
|
|
|
updateProgress(args)
Update preloader progress.
|
- Methods borrowed from class GLGE.Events:
- addEventListener, fireEvent, removeEventListener
Method Detail
addImage(url)
Add an image, which should be loaded by the preloader.
- Parameters:
- {string} url
- Url of the image.
changeState(newState)
Sets the state of the document preloader.
- Parameters:
- {number} newState
- New state
finish(event)
Called when the document preloader loaded all files.
- Parameters:
- {object} event
- Event parameter. Not used at all.
loadImages()
Start loading all images in all xml files. Assumes that XML-files have finished loading.
loadXMLFile(url)
This function loads a XML-file. Assumes that loading images hasn't yet begun.
- Parameters:
- {string} url
- Url of the XML-file.
updateProgress(args)
Update preloader progress.
- Parameters:
- {object} args
- Progress information.
args.stepBytes describes how many bytes have been loaded since the last update.
Documentation generated by JsDoc Toolkit 2.4.0 on Sun Feb 12 2012 14:20:23 GMT+0000 (GMT)