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

Function g3_DoneInstance

renderer/HardwareInstance.cpp:81–90  ·  view source on GitHub ↗

pops the old context

Source from the content-addressed store, hash-verified

79
80// pops the old context
81void g3_DoneInstance() {
82 --sInstanceDepth;
83 ASSERT(sInstanceDepth >= 0);
84
85 View_position = sInstanceStack[sInstanceDepth].m_viewPosition;
86 View_matrix = sInstanceStack[sInstanceDepth].m_viewMatrix;
87 Unscaled_matrix = sInstanceStack[sInstanceDepth].m_unscaledMatrix;
88 memcpy(gTransformModelView, sInstanceStack[sInstanceDepth].m_modelView, sizeof(gTransformModelView));
89 g3_UpdateFullTransform();
90}

Callers 3

DrawPolygonModelFunction · 0.85
RenderSubmodelFunction · 0.85
DrawShardObjectFunction · 0.85

Calls 1

g3_UpdateFullTransformFunction · 0.85

Tested by

no test coverage detected