// Drawing with orthogonal projection... this is a GUI drawing call
driver->drawVertexPrimitiveList(vertices,vtxBufferSize,
currentIndex,cmd->ElemCount/3,
video::EVT_STANDARD,
scene::EPT_TRIANGLES,
video::EIT_16BIT);
I have a irr::core::rectf that i want to use like a scissor rectangle or clip rectangle. How can use that rectf as a scissor rectangle?
I tried with cliping planes... but i can't get it working.
Thanks!
if projection is orthogonal then you can use viewport as a scissor (won't work for perspective projection).
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
REDDemon wrote:if projection is orthogonal then you can use viewport as a scissor (won't work for perspective projection).
I tested it, and doesn't work correctly...
maybe... i have to set as render target a texture with the size of my scissor rectangle, and then render the texture, but that sounds as so much overhead.
EDIT: The texture have to be power of two, grrr... so it isn't solved.