Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
blob: 3fa3b8047bbc4b8331ca8e042d5d0a0b37090ccf (plain)
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
/*
   render/state.h
   This file is part of the Osirion project and is distributed under
   the terms of the GNU General Public License version 2
*/

#ifndef __INCLUDED_RENDER_STATE_H__
#define __INCLUDED_RENDER_STATE_H__

#include "render/gl.h"

namespace render
{

class State
{
public:
	static void init(int width, int height);
	static void shutdown();

	static void resize(int width, int height);
	static void clear();

	inline static int width() {
		return render_width;
	}
	inline static int height() {
		return render_height;
	}
	inline static float aspect() {
		return render_aspect;
	}
	inline static bool has_generate_mipmaps() {
		return render_has_generate_mipmaps;
	}
	inline static bool has_vbo() {
		return render_has_vbo;
	}
	inline static GLuint vbo() {
		return render_vbo;
	}

private:
	static int	render_width;
	static int 	render_height;

	static float	render_aspect;
	static bool	render_has_generate_mipmaps;
	static bool	render_has_vbo;
	static GLuint	render_vbo;
};
} // namespace render

#endif // __INCLUDED_RENDER_STATE_H__