X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Frtarg.h;h=2cead1121299c5df047504716bf67dcb30aafb93;hp=f77682d5a126ba892ee9819f6f3b47193c5a3528;hb=0d4fe99398b649a5471417f8497a828b5f128da1;hpb=92e1b315a32da123b2f8d7bb633375033a10c66d diff --git a/src/rtarg.h b/src/rtarg.h index f77682d..2cead11 100644 --- a/src/rtarg.h +++ b/src/rtarg.h @@ -22,7 +22,7 @@ private: int rtcount; // either the depth texture or a dummy depth render target is used Texture *depth; - unsigned int rbdepth; + unsigned int rbdepth, rbdepth_fmt; Mat4 texmat; // texture matrix to map tex coords from [0,1] to the useful area bool own_texture[4]; @@ -38,6 +38,8 @@ public: unsigned int flags = RT_COLOR | RT_DEPTH); void destroy(); + bool resize(int xsz, int ysz); + int get_width() const; int get_height() const;