Atrinik Client  4.0
Data Structures | Macros | Typedefs
sprite.h File Reference

Go to the source code of this file.

Data Structures

struct  sprite_effects
 
struct  sprite_struct
 

Macros

#define SPRITE_CACHE_GC_MAX_TIME   100000
 
#define SPRITE_CACHE_GC_CHANCE   500
 
#define SPRITE_CACHE_GC_FREE_TIME   60 * 15
 
#define SPRITE_GLOW_SIZE   2
 
#define SPRITE_EFFECTS_NEED_RENDERING(_effects)
 
#define SPRITE_FLAG_DARK   0
 
#define SPRITE_FLAG_FOW   1
 
#define SPRITE_FLAG_RED   2
 
#define SPRITE_FLAG_GRAY   3
 
#define SPRITE_FLAG_EFFECTS   4
 
#define BORDER_CREATE_TOP(_surface, _x, _y, _w, _h, _color, _thickness)   border_create_line((_surface), (_x), (_y), (_w), (_thickness), (_color))
 
#define BORDER_CREATE_BOTTOM(_surface, _x, _y, _w, _h, _color, _thickness)
 
#define BORDER_CREATE_LEFT(_surface, _x, _y, _w, _h, _color, _thickness)   border_create_line((_surface), (_x), (_y), (_thickness), (_h), (_color))
 
#define BORDER_CREATE_RIGHT(_surface, _x, _y, _w, _h, _color, _thickness)
 

Typedefs

typedef struct sprite_effects sprite_effects_t
 
typedef struct sprite_struct sprite_struct
 

Detailed Description

Sprite header file.

Definition in file sprite.h.

Macro Definition Documentation

#define BORDER_CREATE_BOTTOM (   _surface,
  _x,
  _y,
  _w,
  _h,
  _color,
  _thickness 
)
Value:
border_create_line((_surface), (_x), (_y) + (_h) - (_thickness), (_w), \
(_thickness), (_color))
void border_create_line(SDL_Surface *surface, int x, int y, int w, int h, uint32_t color)
Definition: sprite.c:1277

Definition at line 101 of file sprite.h.

#define BORDER_CREATE_RIGHT (   _surface,
  _x,
  _y,
  _w,
  _h,
  _color,
  _thickness 
)
Value:
border_create_line((_surface), (_x) + (_w) - (_thickness), (_y),\
(_thickness), (_h), (_color))
void border_create_line(SDL_Surface *surface, int x, int y, int w, int h, uint32_t color)
Definition: sprite.c:1277

Definition at line 106 of file sprite.h.

#define SPRITE_EFFECTS_NEED_RENDERING (   _effects)
Value:
((_effects)->flags != 0 || (_effects)->alpha != 0 || \
(_effects)->stretch != 0 || ((_effects)->zoom_x != 0 && \
(_effects)->zoom_x != 100) || ((_effects)->zoom_y != 0 && \
(_effects)->zoom_y != 100) || (_effects)->rotate != 0 || \
(_effects)->glow[0] != '\0')

Definition at line 58 of file sprite.h.

#define SPRITE_GLOW_SIZE   2

Size of the glow effect in pixels.

Definition at line 40 of file sprite.h.

Typedef Documentation

Used to pass data to surface_show_effects().

typedef struct sprite_struct sprite_struct

Sprite structure.