projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nasty bug in Texture::create
[laserbrain_demo]
/
src
/
rtarg.h
diff --git
a/src/rtarg.h
b/src/rtarg.h
index
f77682d
..
2cead11
100644
(file)
--- 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;
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];
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();
unsigned int flags = RT_COLOR | RT_DEPTH);
void destroy();
+ bool resize(int xsz, int ysz);
+
int get_width() const;
int get_height() const;
int get_width() const;
int get_height() const;