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

Function g3_StartInstanceAngles

renderer/HardwareInstance.cpp:66–78  ·  view source on GitHub ↗

instance at specified point with specified orientation

Source from the content-addressed store, hash-verified

64
65// instance at specified point with specified orientation
66void g3_StartInstanceAngles(vector *pos, angvec *angles) {
67 if (angles == NULL) {
68 matrix ident;
69 vm_MakeIdentity(&ident);
70 g3_StartInstanceMatrix(pos, &ident);
71 return;
72 }
73
74 matrix tm;
75 vm_AnglesToMatrix(&tm, angles->p, angles->h, angles->b);
76
77 g3_StartInstanceMatrix(pos, &tm);
78}
79
80// pops the old context
81void g3_DoneInstance() {

Callers 1

RenderSubmodelFunction · 0.85

Calls 3

g3_StartInstanceMatrixFunction · 0.85
vm_MakeIdentityFunction · 0.50
vm_AnglesToMatrixFunction · 0.50

Tested by

no test coverage detected