OpenMortal Apocalypse mirror
Sourceforge mirror
SourceForge.net Logo
      News | Info | Characters | Arenas | Screenshots | Forums | Download  
Developer: Making of | Toplevel design | Character-HOWTO | AI Design | Submit a Character
Documentation: Main Page | Modules | Class Hierarchy | Class List | File List

sge_internal.h File Reference

#include "sge_config.h"

Go to the source code of this file.

Defines

#define sge_C_ONLY
#define _SGE_NO_CLASSES
#define PI   3.1414926535
#define SGE_FLAG0   0x00
#define SGE_FLAG1   0x01
#define SGE_FLAG2   0x02
#define SGE_FLAG3   0x04
#define SGE_FLAG4   0x08
#define SGE_FLAG5   0x10
#define SGE_FLAG6   0x20
#define SGE_FLAG7   0x40
#define SGE_FLAG8   0x80
#define SDL_ALPHA_OPAQUE   0
#define SDL_ALPHA_TRANSPARENT   255
#define SDL_VERSIONNUM(X, Y, Z)   (X)*1000 + (Y)*100 + (Z)
#define SDL_CreateRGBSurface   SDL_AllocSurface
#define sge_clip_xmin(pnt)   pnt->clip_minx
#define sge_clip_xmax(pnt)   pnt->clip_maxx
#define sge_clip_ymin(pnt)   pnt->clip_miny
#define sge_clip_ymax(pnt)   pnt->clip_maxy
#define sge_RectUnion(dst_rect, rect1, rect2)
#define sge_MapRGBA(fmt, r, g, b, a)   SDL_MapRGB(fmt, r, g, b)
#define sge_GetRGBA(pixel, fmt, r, g, b, a)   SDL_GetRGBA(pixel, fmt, r, g, b)
#define DECLSPEC


Define Documentation

#define _SGE_NO_CLASSES
 

#define DECLSPEC
 

#define PI   3.1414926535
 

#define SDL_ALPHA_OPAQUE   0
 

#define SDL_ALPHA_TRANSPARENT   255
 

#define SDL_CreateRGBSurface   SDL_AllocSurface
 

#define SDL_VERSIONNUM X,
Y,
 )     (X)*1000 + (Y)*100 + (Z)
 

#define sge_C_ONLY
 

#define sge_clip_xmax pnt   )     pnt->clip_maxx
 

#define sge_clip_xmin pnt   )     pnt->clip_minx
 

#define sge_clip_ymax pnt   )     pnt->clip_maxy
 

#define sge_clip_ymin pnt   )     pnt->clip_miny
 

#define SGE_FLAG0   0x00
 

#define SGE_FLAG1   0x01
 

#define SGE_FLAG2   0x02
 

#define SGE_FLAG3   0x04
 

#define SGE_FLAG4   0x08
 

#define SGE_FLAG5   0x10
 

#define SGE_FLAG6   0x20
 

#define SGE_FLAG7   0x40
 

#define SGE_FLAG8   0x80
 

#define sge_GetRGBA pixel,
fmt,
r,
g,
b,
 )     SDL_GetRGBA(pixel, fmt, r, g, b)
 

#define sge_MapRGBA fmt,
r,
g,
b,
 )     SDL_MapRGB(fmt, r, g, b)
 

#define sge_RectUnion dst_rect,
rect1,
rect2   ) 
 

Value:

dst_rect.x = (rect1.x < rect2.x)? rect1.x:rect2.x;\
    dst_rect.y = (rect1.y < rect2.y)? rect1.y:rect2.y;\
    dst_rect.w = (rect1.x + rect1.w > rect2.x + rect2.w)? rect1.x + rect1.w - dst_rect.x : rect2.x + rect2.w - dst_rect.x;\
    dst_rect.h = (rect1.y + rect1.h > rect2.y + rect2.h)? rect1.y + rect1.h - dst_rect.y : rect2.y + rect2.h - dst_rect.y;