sdrblurtest

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/rtarg.h	Thu Oct 17 08:19:56 2013 +0300
     1.3 @@ -0,0 +1,22 @@
     1.4 +#ifndef RTARG_H_
     1.5 +#define RTARG_H_
     1.6 +
     1.7 +class RenderTarget {
     1.8 +public:
     1.9 +	int xsz, ysz, tex_xsz, tex_ysz;
    1.10 +	unsigned int fbo, tex, zbuf;
    1.11 +
    1.12 +	RenderTarget();
    1.13 +	~RenderTarget();
    1.14 +
    1.15 +	bool create(int xsz, int ysz);
    1.16 +	void destroy();
    1.17 +	void reshape(int xsz, int ysz);
    1.18 +
    1.19 +	void display() const;
    1.20 +};
    1.21 +
    1.22 +void bind_render_target(const RenderTarget *rtarg);
    1.23 +int next_pow2(int x);
    1.24 +
    1.25 +#endif	// RTARG_H_