I’m using AngelScript. I build upon render to texture exampe.
In every frame I’m changing size of a viewport, so it draws on different parts of texture. Works great, but now I need to erase parts of texture (best), or whole texture (worst, but still ok).
How to do it?
Digging docs I found this one:
Looks like what I need, but i’m confused by “const void *data” . What I should put in there, to draw black rectangle?
Or maybe there is other way to flush whole texture?
Thanks in advance.