nuclear@0: #ifndef RTARG_H_ nuclear@0: #define RTARG_H_ nuclear@0: nuclear@0: class RenderTarget { nuclear@0: public: nuclear@0: int xsz, ysz, tex_xsz, tex_ysz; nuclear@0: unsigned int fbo, tex, zbuf; nuclear@0: nuclear@0: RenderTarget(); nuclear@0: ~RenderTarget(); nuclear@0: nuclear@0: bool create(int xsz, int ysz); nuclear@0: void destroy(); nuclear@0: void reshape(int xsz, int ysz); nuclear@0: nuclear@0: void display() const; nuclear@0: }; nuclear@0: nuclear@0: void bind_render_target(const RenderTarget *rtarg); nuclear@0: int next_pow2(int x); nuclear@0: nuclear@0: #endif // RTARG_H_