Drag[en]gine Script Module DragonScript
1.23
|
Immutable occlusion mesh resources. More...
Public Member Functions | |
Management | |
String | getFilename () |
Normalized filename the occlusion mesh has been loaded from. More... | |
bool | equals (Object other) |
OcclusionMesh is equal to another object. More... | |
int | hashCode () |
Hash code for use as dictionary keys. More... | |
Constructors | |
OcclusionMesh | new (String filename) |
Load occlusion mesh from file. More... | |
static void | loadAsynchron (String filename, ResourceListener listener) |
Load occlusion mesh from file asynchronously. More... | |
Immutable occlusion mesh resources.
This is a native class. It can not be subclassed.
bool Dragengine.Scenery.OcclusionMesh.equals | ( | Object | other | ) |
OcclusionMesh is equal to another object.
Implements Object.equals(Object).
String Dragengine.Scenery.OcclusionMesh.getFilename | ( | ) |
Normalized filename the occlusion mesh has been loaded from.
int Dragengine.Scenery.OcclusionMesh.hashCode | ( | ) |
Hash code for use as dictionary keys.
Implements Object.hashCode().
|
static |
Load occlusion mesh from file asynchronously.
Registers a request in the game engine to load an occlusion mesh. Once finished or if the file is already loaded the listener is used to deliver the loaded occlusion mesh or null if the loading failed.
OcclusionMesh Dragengine.Scenery.OcclusionMesh.new | ( | String | filename | ) |
Load occlusion mesh from file.
If the occlusion mesh file has been already loaded it is assigned to this object. If the occlusion mesh is not loaded yet the engine loads the occlusion mesh. This call blocks until the occlusion mesh is fully loaded and ready to be used. For asynchronous loading use loadAsynchron(). Multiple objects can point to the same loaded occlusion mesh resource. Once no object instance uses an occlusion mesh file anymore it is released from memory.