Functions | |
void | ulSetScreenWindow (int x0, int y0, int x1, int y1) |
void | ulSetScreenClipping (int x0, int y0, int x1, int y1) |
void | ulResetScreenClipping () |
Does not work properly because of precision errors, and doesn't work at all with rotation! If you've got any idea on how to do it better, please tell me, it would really help, thanks ;)
void ulSetScreenWindow | ( | int | x0, | |
int | y0, | |||
int | x1, | |||
int | y1 | |||
) |
Defines a window on the screen. Everything will be drawn within this window. If you draw an object at (0,0), it will be drawn on the top-left corner of your window. If the object exceeds of any corner of the window, it will be clipped (cutted).
void ulSetScreenClipping | ( | int | x0, | |
int | y0, | |||
int | x1, | |||
int | y1 | |||
) |
Defines the screen clipping zone. Only pixels within the clipping rectangle will be drawn on the screen.
Currently, does not work properly (especially with rotation), I should find another way to do that, if you have any idea, please tell me ;)
void ulResetScreenClipping | ( | ) |
Resets the clipping region, including the window.