MCPcopy Create free account
hub / github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook / MouseState

Class MouseState

Chapter10/GL05_Final/src/main.cpp:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50static_assert(sizeof(HDRParams) <= sizeof(PerFrameData));
51
52struct MouseState
53{
54 glm::vec2 pos = glm::vec2(0.0f);
55 bool pressedLeft = false;
56} mouseState;
57
58CameraPositioner_FirstPerson positioner(vec3(-10.0f, 3.0f, 3.0f), vec3(0.0f, 0.0f, -1.0f), vec3(0.0f, 1.0f, 0.0f));
59Camera camera(positioner);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected