aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/canvas.h
blob: 4ccf96c5ce563120c8931215f6cab49de3eff87c (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
#ifndef __JE_CANVAS_H__
#define __JE_CANVAS_H__
#include "../core/configuration.h"
#if defined(jin_graphics)

#include "graphic.h"

namespace JinEngine
{
	namespace Graphics
	{ 
		/// 
		/// Renderable canvas. 
		/// 
		/// A canvas is a rendering target.
		/// 
		class Canvas : public Graphic
		{
		public:
			/// 
			/// 
			///
			static bool isBinded(const Canvas*);

			/// 
			/// Default canvas, aka screen.
			/// 
			Canvas(GLuint n);

			/// 
			/// 
			/// 
			Canvas(int w, int h);

			/// 
			/// 
			/// 
			~Canvas();
		
			inline GLuint getGLFrameBuffer() const { return fbo; };

		protected:

			GLuint fbo; 

		};

	} // namespace Graphics
} // namespace JinEngine

#endif // defined(jin_graphics)

#endif // __JE_CANVAS_H__