MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / update_aspect_ratio

Method update_aspect_ratio

framework/camera_core.cpp:69–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void Camera::update_aspect_ratio(float aspect)
70{
71 matrices.perspective = glm::perspective(glm::radians(fov), aspect, znear, zfar);
72 updated = true;
73}
74
75void Camera::set_position(const glm::vec3 &position)
76{

Callers 3

resizeMethod · 0.80
resizeMethod · 0.80
update_extentsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected