diff options
author | chai <chaifix@163.com> | 2018-05-18 14:39:38 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-05-18 14:39:38 +0800 |
commit | 1b773ad2c250e09c09c065eb3eec64bfebde09ca (patch) | |
tree | b3f1f367694d5f86cc0caa7f4eea2e6a1d3424c5 /src/libjin/render/canvas.h | |
parent | 91a592da979827b1735901388dba8712e6e3ecf3 (diff) |
修改userdata创建方式
Diffstat (limited to 'src/libjin/render/canvas.h')
-rw-r--r-- | src/libjin/render/canvas.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libjin/render/canvas.h b/src/libjin/render/canvas.h index 6f81ed6..e65c0c1 100644 --- a/src/libjin/render/canvas.h +++ b/src/libjin/render/canvas.h @@ -9,11 +9,9 @@ namespace render { public: - Canvas(); + Canvas(int w, int h); ~Canvas(); - bool init(int w, int h); - void bind(); static void unbind(); @@ -26,6 +24,8 @@ namespace render // current binded fbo static GLint cur; + + bool init(); }; } } |