home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD1.img
/
d1xx
/
d105
/
ipo2c
/
ipo2c.doc
< prev
next >
Wrap
Text File
|
1987-10-25
|
3KB
|
99 lines
/**********************************************************************/
INTUITION POINTER TO C
( IPo2C )
By: Alex Livshits
20-Sep-87
/**********************************************************************/
IMPORTANT
---------
The following files are placed in Public Domain by the author:
- IPo2C executable,
- IPo2C.c source,
- inputhandler.c source,
- IPo2C.o object,
- inputhandler.o object,
- handlerinterface.o object,
- link BLINK 'with' file
- IPo2C.doc this file
ON CONDITION that they are distributed all together and for
NON-COMMERCIAL purposes only.
WHAT IT DOES
------------
This small utility writes to a file the C-language
definition of the CURRENT intuition pointer. The data in the file
created by IPo2C is ready to be used by SetPointer().
I wrote this utility because I wanted to include in my programs
the intuition ZZz-pointer. It worked fine for this one and for any
other custom pointer I tried. By the way, IPo2C allows you to use
Preference's Set Pointer option as an editor for your own pointers.
HOW IT WORKS
------------
IPo2C waits in the background until the keys ALT-P are pressed together.
Then, it grabs the pointer sprite definition in IntuitionBase
(APointer etc..) and writes it to the specified file in C-language
format.
HOW TO USE IT
-------------
Just RUN IPo2C <file name>. When the pointer you want appears, press
ALT and P keys together. IPo2C will write out to <file name> this
pointer definition in C format. If file <file name> already exists,
the new data will be appended to the end of <file name>. You can press
ALT-P several times, each time new data will be apppended to
<file name>. Press ALT and F keys together to stop IPo2C.
Compile or #INCLUDE the file with your code. Use SetPointer() function
in intuition.library to change appearence of your sprite. The data
format created by IPo2C especially designed to be used as the parameters
for SetPointer() function.
Don't forget to place the pointer sprite definition into CHIP memory.
I use ATOM <infile.o> <outfile.o> -pc -cdb.
TO COMPILE
----------
You MUST use Lattice C (3.10 or 3.03) to compile IPo2C.
I'm reasonably confident that it will NOT compile correctly with Manx C.
The steps are:
Compile IPo2C.c and inputhandler.c as follows:
LC1 -ccws -oram: <file>
LC2 -v -oRAM: ram:<file>
copy ram:<file>.o to <file>.o
Assembly handlerinterface.asm
Link them all:
BLINK with link
(link file included)
CONTACT
-------
Alex Livshits,
15 rue Durantin,
75018 Paris,
FRANCE
Enjoy!