Drag[en]gine Script Module DragonScript  1.21
Dragengine.Scenery.OcclusionMesh Class Reference

Immutable occlusion mesh resources. More...

Inheritance diagram for Dragengine.Scenery.OcclusionMesh:

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...
 

Detailed Description

Immutable occlusion mesh resources.

This is a native class. It can not be subclassed.

Member Function Documentation

◆ equals()

bool Dragengine.Scenery.OcclusionMesh.equals ( Object  other)

OcclusionMesh is equal to another object.

Implements Object.equals(Object).

Returns
true if other is of type OcclusionMesh and both point to the same engine occlusion mesh resource.

◆ getFilename()

String Dragengine.Scenery.OcclusionMesh.getFilename ( )

Normalized filename the occlusion mesh has been loaded from.

◆ hashCode()

int Dragengine.Scenery.OcclusionMesh.hashCode ( )

Hash code for use as dictionary keys.

Implements Object.hashCode().

◆ loadAsynchron()

static void Dragengine.Scenery.OcclusionMesh.loadAsynchron ( String  filename,
ResourceListener  listener 
)
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.

◆ new()

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.


The documentation for this class was generated from the following file: