|
Drag[en]gine Script Module DragonScript 1.35
|
Immutable occlusion mesh resources. More...
Public Member Functions | |
Management | |
| String | getFilename () |
| Normalized filename the occlusion mesh has been loaded from. | |
| bool | equals (Object other) |
| OcclusionMesh is equal to another object. | |
| int | hashCode () |
| Hash code for use as dictionary keys. | |
Constructors | |
| OcclusionMesh | new (String filename) |
| Load occlusion mesh from file. | |
| static void | loadAsynchron (String filename, ResourceListener listener) |
| Load occlusion mesh from file asynchronously. | |
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).
References equals().
Referenced by equals().
| String Dragengine.Scenery.OcclusionMesh.getFilename | ( | ) |
Normalized filename the occlusion mesh has been loaded from.
References getFilename().
Referenced by getFilename().
| int Dragengine.Scenery.OcclusionMesh.hashCode | ( | ) |
Hash code for use as dictionary keys.
Implements Object.hashCode().
References hashCode().
Referenced by 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.
References loadAsynchron().
Referenced by loadAsynchron().
| 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.
References new().
Referenced by new().