MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / init

Method init

source/MRViewer/MRViewport.cpp:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void Viewport::init()
85{
86 viewportGL_ = ViewportGL();
87 initBaseAxes();
88 updateSceneBox_();
89 auto sceneCenter = sceneBox_.valid() ? sceneBox_.center() : Vector3f();
90 setRotationPivot_( params_.staticRotationPivot ? *params_.staticRotationPivot : sceneCenter );
91 setupProjMatrix_();
92 setupAxesViewProjMatrix_();
93}
94
95void Viewport::shut()
96{

Callers 2

clearFramebuffersMethod · 0.45
preDrawMethod · 0.45

Calls 3

ViewportGLClass · 0.85
validMethod · 0.45
centerMethod · 0.45

Tested by

no test coverage detected