GetClippedRect calculates clipped viewport rectangle, together with dx and dy adjustments that are made for the clipping that is to be done. Returns false if the resulting clipping rectangle is empty (thereby no rendering can take place).
Clipping includes:
Parameters |
Description |
Rect<IntType> * prect |
Pointer to a rectangle for the rectangle dimensions. //the rectangle to clip rendering to. |
bool orient = false |
_nt_ |
IntType* pdx |
_nt_ |
IntType* pdy |
_nt_ |
Returns true for successful clipped rectangle and empty if the resulting clipping rectangle is empty.