home *** CD-ROM | disk | FTP | other *** search
- TABLE OF CONTENTS
-
- graphics_pak/AllocBitMap
- graphics_pak/CloseLibraries
- graphics_pak/CopyBitMap
- graphics_pak/DrawBitMap
- graphics_pak/DrawBox
- graphics_pak/DrawLine
- graphics_pak/DrawPixel
- graphics_pak/FillBox
- graphics_pak/FreeBitMap
- graphics_pak/MoveBitMap
- graphics_pak/OpenLibraries
- graphics_pak/WriteText
-
-
- graphics_pak/AllocBitMap graphics_pak/AllocBitMap
-
- NAME
- AllocBitMap - allocate a BitMap structure and memory
-
- SYNOPSIS
- bitmap = AllocBitMap(width, height, depth, flags);
-
- PROTOTYPE
- struct BitMap *AllocBitMap(USHORT, USHORT, UBYTE, UBYTE);
-
- FUNCTION
- AllocBitMap will attempt to allocate memory for a BitMap structure,
- plus enough CHIP memory to hold an image of the desired size and
- depth. It will then initialize the BitMap and return a pointer to it.
-
- INPUTS
- width -- width of the BitMap in pixels
- height -- height of the BitMap in pixels
- depth -- depth of the BitMap in planes
- flags -- flag bits: FASTMEM (allocate the bitmap memory with FAST
- memory), CHIPMEM (default - use CHIP memory)
-
- RETURNS
- If all memory is successfully allocated, returns a pointer to the
- initialized BitMap structure. If not, returns NULL.
-
- BUGS
- If the FASTMEM flag is used, the custom graphics hardware will be
- unable to display the imagery. The usefulness of this flag is only
- if you plan to copy the image data (using a non-blitter copy, such as
- movmem()) down into CHIP memory before displaying it.
-
- SEE ALSO
- FreeBitMap()
- CopyBitMap(), DrawBitMap(), MoveBitMap()
-
-
- graphics_pak/CloseLibraries() graphics_pak/CloseLibraries()
-
- NAME
- CloseLibraries - close any libraries opened with OpenLibraries()
-
- SYNOPSIS
- CloseLibraries();
-
- PROTOTYPE
- void CloseLibraries(void);
-
- FUNCTION
- CloseLibraries simply closes any libraries that were opened
- successfully with the OpenLibraries() function. The graphics_pak keeps
- track of which libraries were opened with a local variable, and uses
- this is the close process.
-
- INPUTS
- None.
-
- RETURNS
- None.
-
- BUGS
- None.
-
- SEE ALSO
- OpenLibraries()
-
-
- graphics_pak/CopyBitMap graphics_pak/CopyBitMap
-
- NAME
- CopyBitMap - copy a rectangle from one BitMap to another
-
- SYNOPSIS
- CopyBitMap(srcbitmap, x, y, width, height, destbitmap);
-
- PROTOTYPE
- void CopyBitMap(struct BitMap *, int, int, int, int, struct BitMap *);
-
- FUNCTION
- CopyBitMap copies the specified rectangle from the source BitMap at the
- specified offset into the destination BitMap at offset 0, 0.
- Does not check for BitMap boundaries. Make sure you don't give
- locations outside of the source/destination BitMaps. Make sure the
- destination is large enough for the copied rectangle.
-
- INPUTS
- srcbitmap -- pointer to the source BitMap
- x -- upper-left x coordinate of rectangle to copy
- y -- upper-left y coordinate of rectangle to copy
- width -- width of rectangle to copy (in pixels)
- height -- height of rectangle to copy (in pixels)
- destbitmap -- pointer to the destination BitMap
-
- RETURNS
- None.
-
- BUGS
- None.
-
- SEE ALSO
- DrawBitMap(), MoveBitMap()
-
-
- graphics_pak/DrawBitMap graphics_pak/DrawBitMap
-
- NAME
- DrawBitMap - draw a BitMap into another BitMap
-
- SYNOPSIS
- DrawBitMap(srcbitmap, x, y, w, h, destbitmap);
-
- PROTOTYPE
- void DrawBitMap(struct BitMap *, int, int, int, int, struct BitMap *);
-
- FUNCTION
- DrawBitMap draws a BitMap from offset 0, 0, into another BitMap at the
- specified offset.
- Does not check for BitMap boundaries. Make sure you don't give
- locations outside of the source/destination BitMaps. Make sure the
- destination is large enough for the copied rectangle.
-
- INPUTS
- srcbitmap -- pointer to the source BitMap
- x -- upper-left x coordinate of place to draw the BitMap
- y -- upper-left y coordinate of place to draw the BitMap
- width -- width of source BitMap (in pixels)
- height -- height of source BitMap (in pixels)
- destbitmap -- pointer to the destination BitMap
-
- RETURNS
- None.
-
- BUGS
- None.
-
- SEE ALSO
- CopyBitMap(), MoveBitMap()
-
-
- graphics_pak/DrawBox graphics_pak/DrawBox
-
- NAME
- DrawBox - draws a rectangular box
-
- SYNOPSIS
- DrawBox(rastport, x, y, width, height, color);
-
- PROTOTYPE
- void DrawBox(struct RastPort *, int, int, int, int, int);
-
- FUNCTION
- DrawBox draws a rectangular box of the desired size and color.
-
- INPUTS
- rastport -- pointer to the RastPort to draw the box into
- x -- upper-left x-coordinate of box
- y -- upper-left y-coordinate of box
- width -- width of the box (in pixels)
- height -- width of the box (in pixels)
- color -- color of the box
-
- RETURNS
- None.
-
- BUGS
- None.
-
- SEE ALSO
- FillBox()
-
-
- graphics_pak/DrawLine graphics_pak/DrawLine
-
- NAME
- DrawLine - draws a line
-
- SYNOPSIS
- DrawLine(rastport, x1, y1, x2, y2, color);
-
- PROTOTYPE
- void DrawLine(struct RastPort *, int, int, int, int, int);
-
- FUNCTION
- DrawLine draws a colored line from one point to another in the
- specified RastPort.
-
- INPUTS
- rastport -- pointer to the RastPort to draw the line into
- x1 -- x-coordinate of one end of the line
- y1 -- y-coordinate of one end of the line
- x2 -- x-coordinate of the other end of the line
- y2 -- y-coordinate of the other end of the line
- color -- color of the line
-
- RETURNS
- None.
-
- BUGS
- None.
-
- SEE ALSO
- DrawPixel(), DrawBox()
-
-
- graphics_pak/DrawPixel graphics_pak/DrawPixel
-
- NAME
- DrawPixel - set a pixel
-
- SYNOPSIS
- DrawPixel(rastport, x, y, color);
-
- PROTOTYPE
- void DrawPixel(struct RastPort *, int, int, int);
-
- FUNCTION
- DrawPixel sets the specified pixel in the specified RastPort to the
- specified color.
-
- INPUTS
- rastport -- pointer to the RastPort to affect
- x -- x-coordinate of pixel
- y -- y-coordinate of pixel
- color -- color to draw the pixel
-
- RETURNS
- None.
-
- BUGS
- None.
-
- SEE ALSO
- DrawLine(), DrawBox()
-
-
- graphics_pak/FillBox graphics_pak/FillBox
-
- NAME
- FillBox - draws a filled rectangle
-
- SYNOPSIS
- FillBox(rastport, x, y, width, height, color);
-
- PROTOTYPE
- void FillBox(struct RastPort *, int, int, int, int, int);
-
- FUNCTION
- FillBox draws a filled rectangle of the desired size and color.
-
- INPUTS
- rastport -- pointer to the RastPort to draw the rectangle into
- x -- upper-left x-coordinate of rectangle
- y -- upper-left y-coordinate of rectangle
- width -- width of the rectangle (in pixels)
- height -- width of the rectangle (in pixels)
- color -- color of the filled rectangle
-
- RETURNS
- None.
-
- BUGS
- None.
-
- SEE ALSO
- DrawBox()
-
-
- graphics_pak/FreeBitMap graphics_pak/FreeBitMap
-
- NAME
- FreeBitMap - free memory allocate via AllocBitMap()
-
- SYNOPSIS
- FreeBitMap(bitmap);
-
- PROTOTYPE
- void FreeBitMap(struct BitMap *);
-
- FUNCTION
- FreeBitMap deallocates the image and structure memory allocate with
- the AllocBitMap() function.
-
- INPUTS
- bitmap -- pointer to the BitMap to free
-
- RETURNS
- None.
-
- BUGS
- None.
-
- SEE ALSO
- AllocBitMap()
-
-
- graphics_pak/MoveBitMap graphics_pak/MoveBitMap
-
- NAME
- MoveBitMap - copy a rectangle from one BitMap to another
-
- SYNOPSIS
- MoveBitMap(srcbitmap, x, y, width, height, destbitmap, dx, dy);
-
- PROTOTYPE
- void MoveBitMap(struct BitMap *, int, int, int, int, struct BitMap *,
- int, int);
-
- FUNCTION
- MoveBitMap copies the specified rectangle from the source BitMap at the
- specified offset into the destination BitMap at the specified dest-
- ination offset.
- Does not check for BitMap boundaries. Make sure you don't give
- locations outside of the source/destination BitMaps. Make sure the
- destination is large enough for the copied rectangle.
-
- INPUTS
- srcbitmap -- pointer to the source BitMap
- x -- upper-left x coordinate of rectangle to copy
- y -- upper-left y coordinate of rectangle to copy
- width -- width of rectangle to copy (in pixels)
- height -- height of rectangle to copy (in pixels)
- destbitmap -- pointer to the destination BitMap
- dx -- upper-left x coordinate of destination position
- dy -- upper-left y coordinate of destination position
-
- RETURNS
- None.
-
- BUGS
- None.
-
- SEE ALSO
- CopyBitMap(), DrawBitMap()
-
-
- graphics_pak/OpenLibraries graphics_pak/OpenLibraries
-
- NAME
- OpenLibraries - open ROM/DISK libraries
-
- SYNOPSIS
- success = OpenLibraries(libs);
-
- PROTOTYPE
- int OpenLibraries(UWORD);
-
- FUNCTION
- OpenLibraries opens a set of libraries specified as bits in the libs
- variable. The libraries opened with OpenLibraries are maintained in
- a module-local variable, and is used via CloseLibraries(). Also, if
- any of the specified libraries is unavailable, that bit is not set in
- the internal open libraries variable.
-
- INPUTS
- libs -- UWORD containing the bits of the libraries to be opened, as
- defined below:
-
- Bit Definition Library
-
- GFXBASE GfxBase
- INTUITIONBASE IntuitionBase
- LAYERSBASE LayersBase
- DISKFONTBASE DiskFontBase
- MATHTRANSBASE MathTransBase
-
- RETURNS
- OpenLibraries returns an int with the bits of opened libraries set.
-
- BUGS
- None.
-
- SEE ALSO
- CloseLibraries()
-
-
- graphics_pak/WriteText graphics_pak/WriteText
-
- NAME
- WriteText - draws text in the specified RastPort
-
- SYNOPSIS
- WriteText(rastport, x, y, text, color);
-
- PROTOTYPE
- void WriteText(struct RastPort *, long, long, char *, long);
-
- FUNCTION
- WriteText draws the specified text into the specified RastPort in the
- specified location and color. The text is in the size and style of the
- specified RastPort.
-
- INPUTS
- rastport -- pointer to the RastPort to render the text into
- x -- upper-left x coordinate of the text
- y -- upper-left y coordinate of BASELINE of the text
- text -- pointer to the NULL-terminated text string
- color -- color of the text
-
- RETURNS
- None.
-
- BUGS
- None.
-
- SEE ALSO
-
-