Gravity Engine 2 3.0
Loading...
Searching...
No Matches
GravityEngine2.GSDisplayObject Class Referenceabstract

Abstract class to provide a API to allow display objects to add themselves to the GravitySceneDisplay (GSD) in the fashion they wish. More...

Inheritance diagram for GravityEngine2.GSDisplayObject:
GravityEngine2.GSDisplayBody GravityEngine2.GSDisplayOrbit GravityEngine2.GSDisplayOrbitPoint GravityEngine2.GSDisplayOrbitSegment

Public Member Functions

void AddToSceneDisplay (GSDisplay gsd)
 
bool DisplayEnabled ()
 
virtual void DisplayEnabledSet (bool value)
 
int DisplayId ()
 
void DisplayIdSet (int id)
 
GSDisplay GSDisplay ()
 

Public Attributes

int framesBetweenUpdates = 0
 

Protected Attributes

bool displayEnabled = true
 
int displayId = -1
 
int framesUntilUpdate = 0
 countdown until this display object shold update
 
GSDisplay gsd
 

Detailed Description

Abstract class to provide a API to allow display objects to add themselves to the GravitySceneDisplay (GSD) in the fashion they wish.

This is done by having the GSD asking them to add themselves, since each implementation class type has unique information about the context in how it used during a GSD update cycle.

GSD objects will automatically remove themselves from the GSDisplay when destroyed.

Member Data Documentation

◆ framesBetweenUpdates

int GravityEngine2.GSDisplayObject.framesBetweenUpdates = 0

Number of Update frames between updates. This is a suggestion, actual update rate will vary depending on overall distribution. For continuous display set to 0.


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