typedef struct rseColor32 { char r, g, b, a; } rseColor; typedef struct rseBuffer { char bpp; int width, height; void *buffer; } /** *** Buffer functions **/ /* Initialize a buffer returns a null pointer on fail and a buffer pointer on success */ rseBuffer *initBuffer ( char bpp, int width, int height ); /* Free memory used by a buffer returns true or false if the supplied buffer is already free or not */ BOOL freeBuffer ( rseBuffer **buffer ); /** *** Draw functions **/ /* Put a pixel return true or false, if the coordinate is out of bounds */ BOOL putPixel ( int x, int y, rseColor32 color, rseBuffer buffer ); /* Draw a line return true or false, if the coordinates are out of bounds */ BOOL drawLine ( int x1, int y1, int x2, int y2, rseColor32 color, rseBuffer buffer ); /* Fill a shape return true or false, if the coordinate is out of bounds */ BOOL floodFill ( int x, int y, rseColor32 color, rseBuffer buffer ); /** *** Color functions **/