MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / initialize

Method initialize

engine/src/camera.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29Camera::~Camera() {}
30
31void Camera::initialize(int x, int y, int width, int height)
32{
33 position.x = x;
34 position.y = y;
35 size.x = width;
36 size.y = height;
37 velocity = Vector2(0.0f, 0.0f);
38}
39
40void Camera::setOrthoMatrix()
41{

Callers

nothing calls this directly

Calls 1

Vector2Class · 0.85

Tested by

no test coverage detected