home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
pointers
/
pointer
/
readme
< prev
next >
Wrap
Text File
|
1991-01-11
|
2KB
|
66 lines
ZZ POINTER
by Timm Martin
INTRODUCTION
This archive contains a few functions to allow you to use the ZZ sleepy
pointer used in SID. Included are 5 files:
README ......... what you are reading now
zz_pointer.c ... all of the pointer functions
zz_pointer.h ... header file for programs using these functions
test.c ......... test program showing you how to use these functions
test ........... executable form of the test program
LEGAL JUNK
All of this source is public domain. You may use it in any program,
commercial or non-commercial, without acknowledgement of or compensation to
the author.
All of the source was written to conform to ANSI C standards and compiles
cleanly using Manx C v5.0b (and compiler options -pas -wadpru).
GETTING STARTED...QUICKLY!
-- Place the zz_pointer.h header file in the current directory and add the
following line to the beginning of your source file:
#include "zz_pointer.h"
-- In your program startup function, call the zz_pointer_open() function,
checking its return value. If FALSE, you should end the program.
-- In your program cleanup function, call the zz_pointer_close() function.
-- To display the ZZ pointer, call the ZZ_POINTER() macro defined in
zz_pointer.h, passing it a pointer to your window.
-- To clear the pointer (returning it to the system default), call the
CLEAR_POINTER() macro defined in zz_pointer.h, passing it a pointer to
your window.
-- Compile the zz_pointer.c source file. Be sure to link this file with
your main program, for example (with the test.c program and Manx C):
ln test zz_pointer -lc
A FEW DETAILS
The zz_pointer_open() function copies the pointer data into CHIP RAM so you
don't have to worry about setting any special linker flags. The pointer data
must reside in CHIP RAM for the graphics chip to correctly display it. The
zz_pointer_close() function then frees the allocated CHIP RAM.
The test program shows you just how easy it is to display the ZZ pointer.
When you run the test program, click the left mouse button in the window.
Each time you click the button, the pointer will cycle between the ZZ pointer
and the default window pointer.
/*--- END OF TEXT ---*/