This is the doxygen documentation for gtkboard.

.
Main Page   Data Structures   File List   Data Fields   Globals  

aaball.h File Reference

Go to the source code of this file.

Functions

char** pixmap_ball_gen (int, char *, int, int, float, float)
 Generates a ball. More...

char** pixmap_header_gen (int, char *, int, int)
 Used if you already have the pixmap and only want to generate the header (i.e, same shape, different color).

char** pixmap_die_gen (int, char *, int, int, float, float, int)
 Generates dice. More...

void rgbmap_ball_gen (int, unsigned char *, int, int, float, float)
void rgbmap_ball_gen_nobg (int, unsigned char *, int, int, float, float)
 Same as rgbmap_ball_gen but don't generate the background - i.e, overlay the ball on the existing image.

void rgbmap_ball_shadow_gen (int, unsigned char *, int, int, float, float, int)
void rgbmap_square_gen (int, unsigned char *, int, int, float)


Function Documentation

char** pixmap_ball_gen ( int len,
char * pixbuf,
int fg,
int bg,
float rad,
float grad )
 

Generates a ball.

Parameters:
len   = size of ball
pixbuf   = buffer to store the pixmap in
fg   = foreground color (color of the ball)
bg   = background color (color of the square)
rad   = radius of the ball
grad   = gradient with which the ball merges into the backgound (larger gradient indicates sharper boundary)

Definition at line 103 of file aaball.c.

Referenced by checkers_get_pixmap(), dnb_get_pixmap(), hiq_get_pixmap(), hypermaze_get_pixmap(), infiltrate_get_pixmap(), kttour_get_pixmap(), othello_get_pixmap(), pacman_get_pixmap(), plot4_get_pixmap(), samegame_get_pixmap(), and sb_set_turn_image().

char** pixmap_die_gen ( int len,
char * pixbuf,
int fg,
int bg,
float rad,
float grad,
int num )
 

Generates dice.

Args same as pixmap_ball_gen() except num which is the number on the die

Definition at line 243 of file aaball.c.

Referenced by mastermind_get_pixmap().

char** pixmap_header_gen ( int len,
char * pixbuf,
int fg,
int bg )
 

Used if you already have the pixmap and only want to generate the header (i.e, same shape, different color).

Definition at line 221 of file aaball.c.

Referenced by samegame_get_pixmap().

void rgbmap_ball_gen ( int len,
unsigned char * rgbbuf,
int fg,
int bg,
float rad,
float grad )
 

Definition at line 170 of file aaball.c.

Referenced by quarto_get_rgbmap().

void rgbmap_ball_gen_nobg ( int len,
unsigned char * rgbbuf,
int fg,
int bg,
float rad,
float grad )
 

Same as rgbmap_ball_gen but don't generate the background - i.e, overlay the ball on the existing image.

Definition at line 185 of file aaball.c.

Referenced by quarto_get_rgbmap().

void rgbmap_ball_shadow_gen ( int len,
unsigned char * rgbbuf,
int fg,
int bg,
float rad,
float grad,
int shadowlen )
 

Definition at line 190 of file aaball.c.

Referenced by ataxx_get_rgbmap(), blet_get_rgbmap(), othello_get_rgbmap(), pentaline_get_rgbmap(), and rgb_get_rgbmap().

void rgbmap_square_gen ( int len,
unsigned char * rgbbuf,
int fg,
int bg,
float side )
 

Definition at line 152 of file aaball.c.

Referenced by quarto_get_rgbmap().