Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

Bitmap.c File Reference

#include <stdlib.h>
#include <string.h>
#include "macros.h"
#include "debug.h"
#include "Bases.h"
#include "Locale.h"
#include "Common.h"
#include "Memory.h"
#include "Gui.h"
#include "Window.h"
#include "Net.h"
#include "Bitmap.h"

Include dependency graph for Bitmap.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  Bitmap_s

Functions

u32 bitmap_Create (u32 firsttag,...)
u32 bitmap_CreateTL (tag *taglist)
void bitmap_Print (Bitmap_t *bmp, char *msg)
u32 bitmap_Delete (u32 firsttag,...)
u32 bitmap_DeleteTL (tag *taglist)
u32 bitmap_Copy (u32 firsttag,...)
u32 bitmap_CopyTL (tag *taglist)
u32 bitmap_ObtainVector (u32 firsttag,...)
u32 bitmap_ObtainVectorTL (tag *taglist)
u32 bitmap_ReleaseVector (u32 firsttag,...)
u32 bitmap_ReleaseVectorTL (tag *taglist)
u32 bitmap_Fill (u32 firsttag,...)
u32 bitmap_FillTL (tag *taglist)
u32 bitmap_IsSolid (u32 firsttag,...)
u32 bitmap_IsSolidTL (tag *taglist)
u32 bitmap_Call (int function, u32 firsttag,...)
u32 bitmap_CallTL (int function, tag *taglist)
int bitmap_Init (void)
void bitmap_CleanUp (void)

Variables

u32(* call_vector [BITMAP_FUNC_DONE-BITMAP_FUNCBASE+1])(tag *)


Function Documentation

u32 bitmap_Call int    function,
u32    firsttag,
...   
 

Definition at line 438 of file Bitmap.c.

References bitmap_CallTL, and u32.

Referenced by bitmap_Init.

u32 bitmap_CallTL int    function,
tag   taglist
 

Definition at line 442 of file Bitmap.c.

References BITMAP_FUNC_DONE, BITMAP_FUNCBASE, call_vector, debug_Begin, debug_End, debug_Message, debug_Warning, and u32.

Referenced by bitmap_Init.

void bitmap_CleanUp void   
 

Definition at line 488 of file Bitmap.c.

References debug_Begin, and debug_End.

Referenced by gui_CleanUp.

u32 bitmap_Copy u32    firsttag,
...   
 

Parameters:
TAG_BMP_OBJECT  Bitmap_t *
TAG_BMP_X  int
TAG_BMP_Y  int
TAG_BMP_SOURCE  Bitmap_t *

Definition at line 246 of file Bitmap.c.

References bitmap_CopyTL, and u32.

u32 bitmap_CopyTL tag   taglist
 

Definition at line 250 of file Bitmap.c.

References Bitmap_s::bytewidth, Bitmap_s::data, debug_Begin, debug_End, debug_Message, Bitmap_s::height, min, NULL, TAG_BMP_OBJECT, TAG_BMP_SOURCE, TAG_BMP_X, TAG_BMP_Y, tag_GetTagData, u32, and Bitmap_s::width.

Referenced by bitmap_Init.

u32 bitmap_Create u32    firsttag,
...   
 

Parameters:
TAG_BMP_WIDTH  int
TAG_BMP_HEIGHT  int
TAG_BMP_INITTYPE  int
TAG_BMP_VECTOR  u8 *
TAG_BMP_VALUE  u32

Definition at line 60 of file Bitmap.c.

References bitmap_CreateTL, and u32.

u32 bitmap_CreateTL tag   taglist
 

Definition at line 64 of file Bitmap.c.

References bitmap_Fill, BMP_ITY_ALPHA, BMP_ITY_BITMAP, BMP_ITY_BYTES, BMP_ITY_FILL, BMP_ITY_RGB, Bitmap_s::bytewidth, Bitmap_s::data, debug_Begin, debug_End, debug_Error, debug_Message, Bitmap_s::height, Bitmap_s::locked, mem_free, mem_malloc, NULL, Bitmap_s::size, TAG_BMP_HEIGHT, TAG_BMP_INITTYPE, TAG_BMP_OBJECT, TAG_BMP_VALUE, TAG_BMP_VECTOR, TAG_BMP_WIDTH, TAG_DONE, tag_GetTagData, u32, u8, and Bitmap_s::width.

Referenced by bitmap_Init.

u32 bitmap_Delete u32    firsttag,
...   
 

Parameters:
TAG_BMP_OBJECT  Bitmap_t *

Definition at line 209 of file Bitmap.c.

References bitmap_DeleteTL, and u32.

u32 bitmap_DeleteTL tag   taglist
 

Definition at line 213 of file Bitmap.c.

References Bitmap_s::data, debug_Begin, debug_End, debug_Error, Bitmap_s::locked, mem_free, NULL, TAG_BMP_OBJECT, tag_GetTagData, and u32.

Referenced by bitmap_Init.

u32 bitmap_Fill u32    firsttag,
...   
 

Parameters:
TAG_BMP_OBJECT  Bitmap_t *
TAG_BMP_VALUE  u8

Definition at line 372 of file Bitmap.c.

References bitmap_FillTL, and u32.

u32 bitmap_FillTL tag   taglist
 

Definition at line 376 of file Bitmap.c.

References Bitmap_s::data, debug_Begin, debug_End, NULL, Bitmap_s::size, TAG_BMP_OBJECT, TAG_BMP_VALUE, tag_GetTagData, u32, and u8.

Referenced by bitmap_Init.

int bitmap_Init void   
 

Definition at line 462 of file Bitmap.c.

References bitmap_Call, bitmap_CallTL, BITMAP_COPY, bitmap_CopyTL, BITMAP_CREATE, bitmap_CreateTL, BITMAP_DELETE, bitmap_DeleteTL, BITMAP_FILL, bitmap_FillTL, BITMAP_FUNCBASE, BITMAP_ISSOLID, bitmap_IsSolidTL, BITMAP_OBTAINVECTOR, bitmap_ObtainVectorTL, BITMAP_RELEASEVECTOR, bitmap_ReleaseVectorTL, call_vector, debug_Begin, and debug_End.

Referenced by gui_Init.

u32 bitmap_IsSolid u32    firsttag,
...   
 

Parameters:
TAG_BMP_OBJECT  Bitmap_t *
TAG_BMP_VALUE  u8

Definition at line 408 of file Bitmap.c.

References bitmap_IsSolidTL, and u32.

u32 bitmap_IsSolidTL tag   taglist
 

Definition at line 412 of file Bitmap.c.

References debug_Begin, debug_End, NULL, TAG_BMP_OBJECT, TAG_BMP_VALUE, tag_GetTagData, u32, and u8.

Referenced by bitmap_Init.

u32 bitmap_ObtainVector u32    firsttag,
...   
 

Parameters:
TAG_BMP_OBJECT  Bitmap_t *
TAG_BMP_VECTOR  u8 **
TAG_BMP_WIDTH  int *
TAG_BMP_HEIGHT  int *
TAG_BMP_BYTEWIDTH  int *

Definition at line 304 of file Bitmap.c.

References bitmap_ObtainVectorTL, and u32.

u32 bitmap_ObtainVectorTL tag   taglist
 

Definition at line 308 of file Bitmap.c.

References Bitmap_s::bytewidth, Bitmap_s::data, debug_Begin, debug_End, Bitmap_s::height, Bitmap_s::locked, NULL, TAG_BMP_BYTEWIDTH, TAG_BMP_HEIGHT, TAG_BMP_OBJECT, TAG_BMP_VECTOR, TAG_BMP_WIDTH, tag_GetTagData, u32, u8, and Bitmap_s::width.

Referenced by bitmap_Init.

void bitmap_Print Bitmap_t   bmp,
char *    msg
 

Definition at line 181 of file Bitmap.c.

References Bitmap_s::bytewidth, Bitmap_s::data, Bitmap_s::height, NULL, u8, and Bitmap_s::width.

u32 bitmap_ReleaseVector u32    firsttag,
...   
 

Parameters:
TAG_BMP_OBJECT  Bitmap_t *

Definition at line 342 of file Bitmap.c.

References bitmap_ReleaseVectorTL, and u32.

u32 bitmap_ReleaseVectorTL tag   taglist
 

Definition at line 346 of file Bitmap.c.

References debug_Begin, debug_End, Bitmap_s::locked, NULL, TAG_BMP_OBJECT, tag_GetTagData, and u32.

Referenced by bitmap_Init.


Variable Documentation

u32(* call_vector[BITMAP_FUNC_DONE-BITMAP_FUNCBASE+1])(tag *) [static]
 

Definition at line 39 of file Bitmap.c.

Referenced by bitmap_CallTL, and bitmap_Init.


Generated on Tue Jan 7 12:11:38 2003 for THEGUI by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002