drawlibs.h File Reference

#include "SDL.h"

Include dependency graph for drawlibs.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SLOCK(surface)
#define SUNLOCK(surface)

Enumerations

enum  { ARROW_UP, ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT }

Functions

template<typename T>
int sgn (T x)
DLLEXPORT SDL_Surface * CreateSurface (Uint32 flags, int width, int height, int bpp=32)
DLLEXPORT void ConvertSurface (SDL_Surface **surface)
DLLEXPORT void DrawPixel (SDL_Surface *screen, int x, int y, Uint32 color)
DLLEXPORT void DrawLine (SDL_Surface *screen, int x1, int y1, int x2, int y2, Uint32 color)
DLLEXPORT void DrawRect (SDL_Surface *screen, int x1, int y1, int x2, int y2, Uint32 color)
DLLEXPORT void DrawRound (SDL_Surface *screen, int x0, int y0, int w, int h, int corner, Uint32 color)
DLLEXPORT void vertgradient (SDL_Surface *surf, SDL_Color c1, SDL_Color c2, Uint8 alpha=255)
DLLEXPORT void vertgradient2 (SDL_Surface *surf, SDL_Rect &gradRect, SDL_Color c1, SDL_Color c2, Uint8 alpha=255)
DLLEXPORT void horizgradient2 (SDL_Surface *surf, SDL_Rect &gradRect, SDL_Color c1, SDL_Color c2, Uint8 alpha=255)
DLLEXPORT Uint32 GetPixel (SDL_Surface *surface, int x, int y)
DLLEXPORT void FloodFill (SDL_Surface *screen, int x, int y, Uint32 c)
DLLEXPORT void DrawTriangle (SDL_Surface *s, int x[3], int y[3], Uint32 c)
DLLEXPORT void DrawArrow (SDL_Surface *s, int type, int x, int y, int a, Uint32 color, bool fill=false, Uint32 fillcolor=0)


Define Documentation

#define SLOCK ( surface   ) 

Value:

do { \
        if(SDL_MUSTLOCK(surface)) \
         SDL_LockSurface(surface); \
    } while(0)

#define SUNLOCK ( surface   ) 

Value:

do { \
        if(SDL_MUSTLOCK(surface)) \
         SDL_UnlockSurface(surface); \
    } while(0)


Enumeration Type Documentation

anonymous enum

Enumerator:
ARROW_UP 
ARROW_DOWN 
ARROW_LEFT 
ARROW_RIGHT 


Function Documentation

DLLEXPORT void ConvertSurface ( SDL_Surface **  surface  ) 

DLLEXPORT SDL_Surface* CreateSurface ( Uint32  flags,
int  width,
int  height,
int  bpp = 32 
)

DLLEXPORT void DrawArrow ( SDL_Surface *  s,
int  type,
int  x,
int  y,
int  a,
Uint32  color,
bool  fill = false,
Uint32  fillcolor = 0 
)

DLLEXPORT void DrawLine ( SDL_Surface *  screen,
int  x1,
int  y1,
int  x2,
int  y2,
Uint32  color 
)

DLLEXPORT void DrawPixel ( SDL_Surface *  screen,
int  x,
int  y,
Uint32  color 
)

DLLEXPORT void DrawRect ( SDL_Surface *  screen,
int  x1,
int  y1,
int  x2,
int  y2,
Uint32  color 
)

DLLEXPORT void DrawRound ( SDL_Surface *  screen,
int  x0,
int  y0,
int  w,
int  h,
int  corner,
Uint32  color 
)

DLLEXPORT void DrawTriangle ( SDL_Surface *  s,
int  x[3],
int  y[3],
Uint32  c 
)

DLLEXPORT void FloodFill ( SDL_Surface *  screen,
int  x,
int  y,
Uint32  c 
)

DLLEXPORT Uint32 GetPixel ( SDL_Surface *  surface,
int  x,
int  y 
)

DLLEXPORT void horizgradient2 ( SDL_Surface *  surf,
SDL_Rect &  gradRect,
SDL_Color  c1,
SDL_Color  c2,
Uint8  alpha = 255 
)

template<typename T>
int sgn ( x  )  [inline]

DLLEXPORT void vertgradient ( SDL_Surface *  surf,
SDL_Color  c1,
SDL_Color  c2,
Uint8  alpha = 255 
)

DLLEXPORT void vertgradient2 ( SDL_Surface *  surf,
SDL_Rect &  gradRect,
SDL_Color  c1,
SDL_Color  c2,
Uint8  alpha = 255 
)


Generated on Sun Mar 11 15:33:24 2007 for MetalWarriors by  doxygen 1.4.7