Guys I don't understand how the clipping rectangle function works.
I'm drawing a rectangle using this:
al_get_clipping_rectangle(&x, &y, &w, &h);
std::cout<<"x: "<<x<<" y: "<<y<<" w: "<<w<<" h: "<<h<<std::endl;
255, 0, 0, 255, false);
and setting the clipping rectangle like this:
And I'm getting this:
I don't understand why that's happening. Shouldn't I see only that tiny rectangle filled with the back-buffer bitmap?
Thread #614179. Printed from Allegro.cc
Sorry AMC, my heart belongs to someone else.