-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCamera.h
More file actions
32 lines (31 loc) · 1015 Bytes
/
Camera.h
File metadata and controls
32 lines (31 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include <SFML\Graphics.hpp>
#include <iostream>
class Camera
{
private:
sf::View m_PCam;
int posX;
int posY;
public:
Camera();
~Camera();
/************************************************/
/* function: createCam */
/* description: create the camera for the game */
/* */
/* param: RenderWindow */
/* return: */
/* Autor: Moritz Weichert */
/************************************************/
void createCam(sf::RenderWindow &win);
void updateCamPos(float pos_x,float pos_y,sf::RenderWindow &win);
/************************************************/
/* function: updateCamPos */
/* description: update the camera position */
/* */
/* param: x, y, RenderWindow */
/* return: */
/* Autor: Moritz Weichert */
/************************************************/
};