Topology#

Functions for creating a Topology, and methods of the Topology object

RuiTopology_CreatePlane( origin, right, down, doClipping )
RuiTopology_CreateSphere()

// example
var topo = RuiTopology_CreateSphere(
COCKPIT_RUI_OFFSET - <0, positionHorizontal, positionVertical>, // POSITION | in screen, left/right, up/down
<0, -1, transformVertical>, // ?, ?, left side down right side up
<0, transformHorizontal, -1>, // ?, bottom left top right, ?
COCKPIT_RUI_RADIUS,
COCKPIT_RUI_WIDTH * width,
COCKPIT_RUI_HEIGHT * height,
COCKPIT_RUI_SUBDIV
)

Topologies

clGlobal.topoFullScreen
clGlobal.topoCockpitHudPermanent
clGlobal.topoTitanCockpitLowerHud
clGlobal.topoTitanCockpitInstrument1 // yes, with a 1
clGlobal.topoTitanCockpitHud
clGlobal.topoCockpitHud
class topology : public var#
void CreateRUITopology_Worldspace(origin, angles, width, height)#
void CreateOrientedTopology(vector org, vector ang, float width, float height)#
void RuiTopology_CreatePlane(origin, right, down, doClipping)#
void RuiTopology_CreateSphere(origin, right, down, COCKPIT_RUI_RADIUS, COCKPIT_RUI_WIDTH, COCKPIT_RUI_HEIGHT, float subDiv)#
void RuiTopology_Destroy( topoInfo.topo )
void RuiTopology_SetParent(topo, knife, attachName)#
void RuiTopology_UpdatePos( topoInfo.topo, updateOrg, right, down )
void RuiTopology_ShareWithCode(topology, ruiCode)#

not sure what ruiCode is. examples: RUI_CODE_TOPO_ANIMATED_COCKPIT, RUI_CODE_TOPO_PERMANENT_COCKPIT