# SGE Macros

- sge_clip
- sge_RectUnion

Important!

- The macros are presented as functions, but remember that they're really macros!

sge_clip

- Sint16 sge_clip_xmin(SDL_Surface *surface)
- Sint16 sge_clip_xmax(SDL_Surface *surface)
- Sint16 sge_clip_ymin(SDL_Surface *surface)
- Sint16 sge_clip_ymax(SDL_Surface *surface)

Returns clipping boundaries for the surface.
void sge_RectUnion(SDL_Rect dst_rect, SDL_Rect rect1, SDL_Rect rect2)
Put the smallest bounding rectangle that encloses both rect1 and rect2 in dst_rect. Note that dst_rect can't be the same structure as rect1 or rect2!

Copyright © 1999-2003 Anders Lindström
Last updated 030808