-
Notifications
You must be signed in to change notification settings - Fork 0
/
Render_wind.h
63 lines (42 loc) · 1.13 KB
/
Render_wind.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
52
53
54
55
56
57
58
59
60
61
62
63
// River Raid 2018
// Made by Micha³ Berdzik, AGH, 2018 ©
//------------------------------------------------------------------
#ifndef RENDER_WIND_H
#define RENDER_WIND_H
#pragma comment(lib,"glu32.lib")
#include <SFML\Graphics.hpp>
#include <SFML\Audio.hpp>
#include <SFML/Window.hpp>
#include <gl/glew.h>
#include <GLFW\glfw3.h>
#include <SDL.h>
#include <iostream>
#include "Player.h"
class Render_wind
{
//zmienne ------------------------------------------------------------------------
public:
//SDL_Renderer* renderer;
private:
const char *p_name;
int p_width, p_height;
SDL_Window *p_window;
//SDL_Surface* p_screen;
SDL_GLContext maincontext; /* Our opengl context handle */
// metody -------------------------------------------------------------------------
public:
Render_wind(const char *name, int width, int height);
~Render_wind();
void clear() const;
void update();
void close() const;
void Set_Perspective() const;
//SDL_Surface GetScreen();
void LoadingScreen();
void RenderStatsFuel(Player* player);
void RenderStatsLife(Player *player);
private:
void set();
bool init();
};
#endif //RENDER_WIND_H