MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / refresh_model

Function refresh_model

src/SB/Game/zUI.cpp:89–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87namespace
88{
89 void refresh_model(_zUI& ui)
90 {
91 if (ui.model)
92 {
93 zUIAsset* sasset;
94 xMat3x3* mat;
95 xMat3x3 pmat, smat;
96
97 ui.bound.mat = (xMat4x3*)ui.model->Mat;
98 ui.bound.mat->pos = 0.0f;
99
100 sasset = ui.sasset;
101 mat = (xMat3x3*)ui.model->Mat;
102
103 xMat3x3Euler(&pmat, &sasset->ang);
104 xMat3x3Scale(&smat, &sasset->scale);
105 xMat3x3Mul(mat, &pmat, &smat);
106 }
107 }
108
109 void init_tweaks()
110 {

Callers 2

zUI_InitFunction · 0.85
zUI_ResetFunction · 0.85

Calls 3

xMat3x3EulerFunction · 0.85
xMat3x3ScaleFunction · 0.85
xMat3x3MulFunction · 0.50

Tested by

no test coverage detected