MCPcopy Create free account
hub / github.com/cginternals/globjects / resize

Function resize

source/examples/tessellation/main.cpp:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void resize()
45{
46 static const auto fovy = glm::radians(40.f);
47 static const auto zNear = 1.f;
48 static const auto zFar = 16.f;
49 static const auto eye = glm::vec3{ 0.f, 1.f, 4.f };
50 static const auto center = glm::vec3{ 0.0, 0.0, 0.0 };
51 static const auto up = glm::vec3{ 0.0, 1.0, 0.0 };
52
53 const auto aspect = static_cast<float>(g_size.x) / glm::max(static_cast<float>(g_size.y), 1.f);
54
55 g_viewProjection = glm::perspective(fovy, aspect, zNear, zFar) * glm::lookAt(eye, center, up);
56}
57
58void initialize()
59{

Callers 3

resizeEventMethod · 0.85
initializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected