Open Shadowblitz16 opened 5 years ago
currently solution is add Graphics.SetScissor()
before your call Graphics.Pop()
, it just like :
{
OnRender();
Graphics.Push();
Graphics.Translate(X, Y);
Graphics.SetScissor(X, Y, W, H);
foreach (var c in Children.Values)
{
c.Render();
}
Graphics.SetScissor(); // disable scissor here !
Graphics.Pop();
}
it was work fine now (i try add another winow in MainWindow
, real Interesting widget)
At present, I am not sure whether the scissor should be disable with pop or should be called manually. I think I have to write an example with the official version.
ok thankyou so much! I was looking at the lua love2d wiki and it used push() before the graphics state changes.
so I am having weird issues where graphics.push() and graphics.pop() doesn't seem to be working quite right.
it seems that the popping may not be working.
it might be a oversight on my end but I am getting this..![image](https://user-images.githubusercontent.com/2453707/57491356-68679300-7271-11e9-8ef7-e21f9ac4c494.png)
here is a example of my code..
here is a example of my project https://drive.google.com/open?id=1fpy0Q-E3aKibt7ffaRt7CxL1LHsMQ2LO