MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetSmallViewer

Function GetSmallViewer

Descent3/SmallViews.cpp:192–196  ·  view source on GitHub ↗

Returns the viewer object for the specified small view. If the view isn't active, returns OBJECT_HANDLE_NONE.

Source from the content-addressed store, hash-verified

190// Returns the viewer object for the specified small view.
191// If the view isn't active, returns OBJECT_HANDLE_NONE.
192int GetSmallViewer(int window) {
193 ASSERT((window >= 0) && (window < NUM_SMALL_VIEWS));
194
195 return Small_views[window].objhandle;
196}
197
198// Create a new small view. If there is already a view in the given window, the old view gets blown away.
199// Parameters: window - which window to open. See constants in SmallViews.h

Callers 3

SelectNextCameraViewFunction · 0.85
MultiSendWeaponsLoadFunction · 0.85
FireWeaponFromObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected