aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/Canvas.h
blob: 3b0a40ac30cc6dfc643baa315737a01f630c4046 (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
#ifndef __JIN_CANVAS_H
#define __JIN_CANVAS_H
#include "../modules.h"
#if JIN_MODULES_RENDER

#include "drawable.h"
namespace jin
{
namespace graphics
{ 

    class Canvas: public Drawable
    {
    public: 
        static Canvas* createCanvas(int w, int h);
        static void unbind();
        static bool hasbind(GLint fbo);

        ~Canvas();
        void bind(); 
        
    protected:
        Canvas(int w, int h);

        GLuint fbo; 
        static GLint cur; 
    };

} // render
} // jin

#endif // JIN_MODULES_RENDER
#endif // __JIN_CANVAS_H