Clipping / Windowing
[Drawing]

Broken. Please see detailed description! More...

Functions

void ulSetScreenWindow (int x0, int y0, int x1, int y1)
void ulSetScreenClipping (int x0, int y0, int x1, int y1)
void ulResetScreenClipping ()

Detailed Description

Broken. Please see detailed description!

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 ;)


Function Documentation

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.


Generated on Sat Jul 14 23:39:33 2007 by  doxygen 1.5.2