-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathengine.h
51 lines (41 loc) · 773 Bytes
/
engine.h
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef ENGINE_INCLUDED
#define ENGINE_INCLUDED
#include <SDL2/SDL.h>
#include <SDL2/SDL_mixer.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#include <iostream>
#include <string>
#include <time.h>
#include "painter.h"
#include "jukebox.h"
#include "control.h"
#include "juego.h"
using std::string;
class Engine{
public:
//Engine();
Engine(int, int, bool);
~Engine();
void run();
void step();
void draw();
bool isRunning();
void handleEvents();
private:
int screen_width, screen_height;
bool fullscreen;
bool running;
SDL_Window* window;
SDL_Renderer* gRenderer;
jukebox* bach;
painter* picasso;
juego* game;
control* controller;
SDL_Event* event;
double frameCount;
double lastTime;
double FPS;
LTexture* fpsText;
};
#endif