textures.<...>

Return to Introduction  Previous page  Next page

Access texture maps within the current scene.

 

Syntax

 

textures.find("<texture filename>") - returns a Texture object for the given texture filename

textures.load("<texture filename>") - preloads the texture file for later use

textures.unload("<texture filename>") - forceably removes the texture file from video memory

 

Examples

 

textures.find("grass.png").reload(); //reloads grass.png from its original file

 

textures.load("dog.png"); // preloads the dog.png bitmap for later use

 

textures.unload("dog.png"); // kicks the dog.png texture out of video memory

 

Remarks

 

The 'find' method must be used as a filename may contain punctuation or spaces which would otherwise break the language grammar.

 

See Also

 

Texture

Script Reference

 



Copyright ©2004 Worldweaver Ltd. DX Studio Home