sdrblurtest

view src/rtarg.h @ 0:26513fdda566

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 17 Oct 2013 08:19:56 +0300
parents
children
line source
1 #ifndef RTARG_H_
2 #define RTARG_H_
4 class RenderTarget {
5 public:
6 int xsz, ysz, tex_xsz, tex_ysz;
7 unsigned int fbo, tex, zbuf;
9 RenderTarget();
10 ~RenderTarget();
12 bool create(int xsz, int ysz);
13 void destroy();
14 void reshape(int xsz, int ysz);
16 void display() const;
17 };
19 void bind_render_target(const RenderTarget *rtarg);
20 int next_pow2(int x);
22 #endif // RTARG_H_