1
Graphics / How can I use OpenGL commands for drawing on RenderTexture?
« on: January 14, 2012, 11:20:26 pm »Quote from: "Laurent"
You need to Clear() before drawing, and Display() after.
And does it work if you display a sprite or a shape in your render-texture?
I used Clear and Display().
I think my matrices or something "OpenGL think" is incorrect because drawing after using RenderTexture::Draw() works fine. So how could I apply RenderTexture's View? ApplyCurrentView is private member. :?
Thank you for helping me.
Edit:
I solved that problem.