sdrblurtest
annotate 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 |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef RTARG_H_ |
nuclear@0 | 2 #define RTARG_H_ |
nuclear@0 | 3 |
nuclear@0 | 4 class RenderTarget { |
nuclear@0 | 5 public: |
nuclear@0 | 6 int xsz, ysz, tex_xsz, tex_ysz; |
nuclear@0 | 7 unsigned int fbo, tex, zbuf; |
nuclear@0 | 8 |
nuclear@0 | 9 RenderTarget(); |
nuclear@0 | 10 ~RenderTarget(); |
nuclear@0 | 11 |
nuclear@0 | 12 bool create(int xsz, int ysz); |
nuclear@0 | 13 void destroy(); |
nuclear@0 | 14 void reshape(int xsz, int ysz); |
nuclear@0 | 15 |
nuclear@0 | 16 void display() const; |
nuclear@0 | 17 }; |
nuclear@0 | 18 |
nuclear@0 | 19 void bind_render_target(const RenderTarget *rtarg); |
nuclear@0 | 20 int next_pow2(int x); |
nuclear@0 | 21 |
nuclear@0 | 22 #endif // RTARG_H_ |