MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / ~Camera

Method ~Camera

src/visualization/components/camera.cpp:42–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 : Component{game_object, gl_canvas} {}
41
42Camera::~Camera() noexcept {
43 // Clear local transform state only. Do not reset the owning GameObject's
44 // pose here: temporary Camera copies (e.g. icon rendering) share the
45 // same GameObject and must not clobber its matrix on destruction.
46 zoom_power_ = 0.0f;
47 camera_pos_x_ = 0.0f;
48 camera_pos_y_ = 0.0f;
49 canvas_width_ = 0;
50 canvas_height_ = 0;
51 mouse_position_ = vec4::zero();
52 projection_.set_identity();
53 scale_.set_identity();
54}
55
56Camera::Camera(const Camera& cam)
57 : Component{cam}, projection_{cam.projection_},

Callers

nothing calls this directly

Calls 1

set_identityMethod · 0.80

Tested by

no test coverage detected