MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / OnResize

Method OnResize

GTE/Applications/Window3.cpp:49–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49bool Window3::OnResize(int32_t xSize, int32_t ySize)
50{
51 if (Window::OnResize(xSize, ySize))
52 {
53 float upFovDegrees, aspectRatio, dMin, dMax;
54 mCamera->GetFrustum(upFovDegrees, aspectRatio, dMin, dMax);
55 mCamera->SetFrustum(upFovDegrees, GetAspectRatio(), dMin, dMax);
56 mTrackBall.SetXSize(xSize);
57 mTrackBall.SetYSize(ySize);
58 mPVWMatrices.Update();
59 return true;
60 }
61 return false;
62}
63
64bool Window3::OnCharPress(uint8_t key, int32_t x, int32_t y)
65{

Callers

nothing calls this directly

Calls 5

GetFrustumMethod · 0.80
SetFrustumMethod · 0.80
SetXSizeMethod · 0.80
SetYSizeMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected