Graphics Module
The Graphics module provides primitive graphics support functions that extend the capabilities of the Amiga’s graphics.library. These functions simplify common tasks such as managing bitplanes, allocating and cloning RastPort structures, drawing shapes, rendering formatted text, and working with frame objects.
BitMap Functions
- AddBitPlanes — Adds one or more bitplanes to an initialized BitMap structure.
- RemoveBitPlanes — Removes and frees a specified number of bitplanes from a BitMap structure.
- NewAllocRaster — Allocates a pre-cleared bitplane in CHIP RAM.
RastPort Functions
- AllocRastPort — Allocates and initializes a new RastPort structure.
- CloneRastPort — Creates an exact copy of an existing RastPort structure.
Drawing Functions
- DrawBox — Draws a rectangle outline on a RastPort.
- DrawFrameStateA — Draws a BOOPSI “frameiclass” object on a REI with configurable state.
- EraseInternalRect — Clears the interior of a Window using its current BackFill Hook.
Text Functions
- TextFmtRastPortArgs — Prints a C-style formatted string onto a RastPort with justification options.
- TextFmtSizeArgs — Calculates the bounding rectangle of a C-style formatted string.
Last updated on