home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 10
/
Fresh_Fish_10_2352.bin
/
new
/
util
/
blank
/
blitzblank
/
developer
/
blitzblanklib.doc
< prev
next >
Wrap
Text File
|
1995-05-14
|
24KB
|
780 lines
TABLE OF CONTENTS
blitzblank.library/--background--
blitzblank.library/BBL_AllocBitMap
blitzblank.library/BBL_AllocDBufBitMap
blitzblank.library/BBL_AllocRastPort
blitzblank.library/BBL_BlankDone
blitzblank.library/BBL_BlankMouse
blitzblank.library/BBL_CloneFirstScreen
blitzblank.library/BBL_CloseScreenSafe
blitzblank.library/BBL_CopyOriginalColors
blitzblank.library/BBL_CopyOriginalScreen
blitzblank.library/BBL_EndDBuf
blitzblank.library/BBL_FadeDown
blitzblank.library/BBL_FreeBitMap
blitzblank.library/BBL_FreeRastPort
blitzblank.library/BBL_GetDarkestPen
blitzblank.library/BBL_GetString
blitzblank.library/BBL_InitDBuf
blitzblank.library/BBL_ModuleRunning
blitzblank.library/BBL_RainbowPalette
blitzblank.library/BBL_RemainingTime
blitzblank.library/BBL_ScreenAvailable
blitzblank.library/BBL_SendMessage
blitzblank.library/BBL_ShowBitMap
blitzblank.library/BBL_UnBlankMouse
blitzblank.library/--background-- blitzblank.library/--background--
PURPOSE
This is the support-library for BlitzBlank-modules. These functions
handle the communication between BlitzBlank and the blankermodules.
Also, there are some additional functions, which may be of use for
some modules.
ALL modules MUST use the following functions:
- BBL_GetString()
- BBL_SendMessage()
- BBL_ModuleRunning()
- BBL_BlankDone()
Modules, which open their own screen, instead of getting one from
BlitzBlank (what most modules do), should use the following
functions in addition:
- BBL_BlankMouse()
- BBL_UnBlankMouse()
- BBL_CloseScreenSafe()
The other functions could be useful for your module. Check them out.
blitzblank.library/BBL_AllocBitMap blitzblank.library/BBL_AllocBitMap
NAME
BBL_AllocBitMap -- Allocate a bitmap.
SYNOPSIS
bitmap = BBL_AllocBitMap( width, height, depth, flags)
D0 D1 D2 D3
struct BitMap *BBL_AllocBitMap( ULONG, ULONG, ULONG, ULONG )
FUNCTION
Allocates a bitmap with the given width, height, depth and flags.
This function is V39-aware and will so call V39's AllocBitMap(),
if available. You will probably need this function in modules
with doublebuffering or hidden drawing.
INPUTS
width - Width of the bitmap in pixels.
height - Height of the bitmap in pixels.
depth - Number of planes in the bitmap.
flags - BMF_CLEAR to specify that the allocated raster should be
filled with color 0.
BMF_DISPLAYABLE to specify that this bitmap data should
be allocated in such a manner that it can be displayed.
Displayable data has more severe alignment restrictions
than non-displayable data in some systems.
BMF_INTERLEAVED tells graphics that you would like your
bitmap to be allocated with one large chunk of display
memory for all bitplanes. This minimizes color flashing
on deep displays. If there is not enough contiguous RAM
for an interleaved bitmap, graphics.library will fall
back to a non-interleaved one.
RESULTS
bitmap - Allocated and initialized bitmap or NULL, if the call failed.
SEE ALSO
BBL_FreeBitMap()
blitzblank.library/BBL_AllocDBufBitMap blitzblank.library/BBL_AllocDBufBitMap
NAME
BBL_AllocDBufBitMap -- Allocate a bitmap for double-buffering.
SYNOPSIS
bitmap = BBL_AllocDBufBitMap( screen )
A0
struct BitMap *BBL_AllocDBufBitMap( struct Screen * )
FUNCTION
Allocates a 2nd bitmap for the given screen with the same size,
depth and attributes (flags). At this time, it just calls
BBL_AllocBitMap(), but in the future, it may know how to deal
with graphic-cards.
INPUTS
screen - An open screen, for which the bitmap is for.
(It is safe, to pass a NULL here -> nothing will be done)
RESULTS
bitmap - Allocated and initialized BitMap or NULL, if the call failed.
SEE ALSO
BBL_InitDBuf(), BBL_ShowBitMap(), BBL_EndDBuf(), BBL_FreeBitMap()
blitzblank.library/BBL_AllocRastPort blitzblank.library/BBL_AllocRastPort
NAME
BBL_AllocRastPort -- Allocate a rastport.
SYNOPSIS
rastport = BBL_AllocRastPort( width, height, depth, flags )
D0 D1 D2 D3
struct RastPort *BBL_AllocRastPort( ULONG, ULONG, ULONG, ULONG )
FUNCTION
Allocates a rastport with the given width, height, depth and flags.
You will probably need this function in modules with doublebuffering
or hidden drawing. Actually, this function allocates a rastport and
then calls BBL_AllocBitMap().
INPUTS
width - Width of the rastport in pixels.
height - Height of the rastport in pixels.
depth - Number of planes in the rastport.
flags - BMF_CLEAR to specify that the allocated raster should be
filled with color 0.
BMF_DISPLAYABLE to specify that this bitmap data should
be allocated in such a manner that it can be displayed.
Displayable data has more severe alignment restrictions
than non-displayable data in some systems.
BMF_INTERLEAVED tells graphics that you would like your
bitmap to be allocated with one large chunk of display
memory for all bitplanes. This minimizes color flashing
on deep displays. If there is not enough contiguous RAM
for an interleaved bitmap, graphics.library will fall
back to a non-interleaved one.
RESULTS
rastport - Allocated and initialized RastPort or NULL, if the call failed.
SEE ALSO
BBL_FreeRastPort()
blitzblank.library/BBL_BlankDone blitzblank.library/BBL_BlankDone
NAME
BBL_BlankDone -- Tell BlitzBlank that blanking is finished.
SYNOPSIS
BBL_BlankDone()
void BBL_BlankDone( void )
FUNCTION
Signals BlitzBlank, that your Module is finished with the
blank()-function. The module must call it, after its blank()-function
returned. BlitzBlank will then close the blankscreen (if it opened
one).
INPUTS
RESULTS
SEE ALSO
All modules
blitzblank.library/BBL_BlankMouse blitzblank.library/BBL_BlankMouse
NAME
BBL_BlankMouse -- Blank the mouse on your own screen.
SYNOPSIS
window = BBL_BlankMouse( screen, mode )
A0 D0
struct Window *BBL_BlankMouse( struct Screen *, UBYTE )
FUNCTION
Opens a window on the screen at position (0,0).
The window is borderless. This window will be activated and the
mousepointer for this window will be made invisible -> The mouse
is blanked. Keep the result of this function for passing it
to BBL_UnBlankMouse() later. If you get a screen from BlitzBlank,
you will never need this function, because BlitzBlank will then
do the mouseblanking for you. Normally, you will use mode 0,
but if you want to have a RastPort with clipping to draw in, you
could use mode 1 for a fullscreen-window and use this window's
RastPort to draw in, instead of the screen's RastPort.
INPUTS
screen - Pointer to an open screen.
(It is safe, to pass a NULL here -> nothing will be done)
mode - 0 for small window (1x1), 1 for fullsize-window.
RESULTS
window - Keep this for use with BBL_UnBlankMouse().
SEE ALSO
BBL_UnBlankMouse(), BB.Tiles.c
blitzblank.lib/BBL_CloneFirstScreen blitzblank.lib/BBL_CloneFirstScreen
NAME
BBL_CloneFirstScreen -- Clone the first screen.
SYNOPSIS
screen = BBL_CloneFirstScreen( moredepth, flags )
D0 D1
struct Screen *BBL_CloneFirstScreen( UWORD, ULONG )
FUNCTION
Clones the first screen. That means it opens a screen with the same
dimensions, same colors and same contents. Normally, you won't need
this function, because you can get a cloned first screen by BlitzBlank
with the flag BBF_CloneScreen in BB_Message/flags. You only need this
function, if you decide at run-time, if you want a custom screen or a
cloned screen.
INPUTS
moredepth - If you want a deeper screen than the first screen then set
this to the number of additional bitplanes.
fl