sdrblurtest

view src/rtarg.h @ 1:e8fc0c9754c9

added fps counter
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 14 Oct 2015 17:46:02 +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_