aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/render/canvas.h
blob: 4600f8b33a64a98d7eaf5f38b09e13b248c9a545 (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 "drawable.h"
namespace jin
{
namespace render 
{ 
    class Canvas: public Drawable
    {
    public: 

        Canvas(); 
        ~Canvas();
        
        bool init(int w, int h); 
        
        void bind(); 
        
        static void unbind();

        static bool hasbind(GLint fbo); 

    private:

        GLuint fbo; 

        // current binded fbo 
        static GLint cur; 
    };
}
}// jin

#endif