home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 …ember: Reference Library / Dev.CD Dec 00 RL Disk 1.toast / pc / technical documentation / develop / develop issue 20 / develop issue 20 code / pict tricks.sea / Pict Tricks / CLUTLess / CLUTLessFile.h < prev    next >
MacBinary  |  1994-07-28  |  1.8 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Jul 28 17:40:10 1994, modified Thu Jul 28 17:40:10 1994, creator 'MMCC', type ASCII, 1049 bytes "CLUTLessFile.h" , at 0x499 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 43 4c 55 54 4c 65 | 73 73 46 69 6c 65 2e 68 |..CLUTLe|ssFile.h|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 01 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 04 19 00 | 00 01 ac aa 5d d6 3a aa |........|....].:.|
|00000060| 5d d6 3a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |].:.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 1a 8b 00 00 |........|........|
|00000080| 0d 2f 2a 20 09 0d 09 09 | 09 09 09 09 09 43 4c 55 |./* ....|.....CLU|
|00000090| 54 4c 65 73 73 0d 09 09 | 09 49 6e 20 73 6f 6d 65 |TLess...|.In some|
|000000a0| 20 69 6e 73 74 61 6e 63 | 65 73 20 69 74 20 69 73 | instanc|es it is|
|000000b0| 20 64 65 73 69 72 65 61 | 62 6c 65 20 74 6f 20 73 | desirea|ble to s|
|000000c0| 74 6f 72 65 20 70 69 63 | 74 73 20 73 74 72 69 70 |tore pic|ts strip|
|000000d0| 70 65 64 20 6f 66 0d 09 | 09 09 43 4c 55 54 73 20 |ped of..|..CLUTs |
|000000e0| 69 6e 20 6f 72 64 65 72 | 20 74 6f 20 73 61 76 65 |in order| to save|
|000000f0| 20 73 6f 6d 65 20 72 6f | 6f 6d 20 69 6e 20 74 68 | some ro|om in th|
|00000100| 65 20 64 69 73 6b 2e 20 | 54 68 69 73 20 73 61 6d |e disk. |This sam|
|00000110| 70 6c 65 20 73 68 6f 77 | 73 0d 09 09 09 68 6f 77 |ple show|s....how|
|00000120| 20 74 6f 20 63 72 65 61 | 74 65 20 73 75 63 68 20 | to crea|te such |
|00000130| 70 69 63 74 73 20 61 6e | 64 20 68 6f 77 20 74 6f |picts an|d how to|
|00000140| 20 70 72 6f 70 65 72 6c | 79 20 64 69 73 70 6c 61 | properl|y displa|
|00000150| 79 20 74 68 65 6d 20 62 | 61 63 6b 2e 0d 09 09 09 |y them b|ack.....|
|00000160| 0d 09 09 09 53 69 6d 70 | 6c 65 49 6e 43 2e 63 20 |....Simp|leInC.c |
|00000170| 2d 2d 20 69 6e 69 74 69 | 61 6c 69 7a 61 74 69 6f |-- initi|alizatio|
|00000180| 6e 20 73 74 75 66 66 20 | 61 6e 64 20 65 76 65 6e |n stuff |and even|
|00000190| 74 20 6c 6f 6f 70 0d 09 | 09 09 43 4c 55 54 4c 65 |t loop..|..CLUTLe|
|000001a0| 73 73 2e 63 20 20 2d 2d | 20 63 6f 64 65 20 74 68 |ss.c --| code th|
|000001b0| 61 74 20 64 6f 65 73 20 | 74 68 65 20 63 72 65 61 |at does |the crea|
|000001c0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 63 6c 75 74 |tion of |the clut|
|000001d0| 20 6c 65 73 73 20 70 69 | 63 74 3b 0d 09 09 09 09 | less pi|ct;.....|
|000001e0| 09 09 20 20 20 73 68 6f | 77 73 20 61 6c 73 6f 20 |.. sho|ws also |
|000001f0| 68 6f 77 20 74 6f 20 64 | 69 73 70 6c 61 79 20 74 |how to d|isplay t|
|00000200| 68 65 20 70 69 63 74 75 | 72 65 73 2e 0d 09 0d 2a |he pictu|res....*|
|00000210| 2f 0d 0d 2f 2a 20 61 6c | 6c 20 74 68 65 20 69 6e |/../* al|l the in|
|00000220| 63 6c 75 64 65 73 20 77 | 65 20 6e 65 65 64 2e 20 |cludes w|e need. |
|00000230| 2a 2f 0d 23 69 6e 63 6c | 75 64 65 20 3c 4d 65 6d |*/.#incl|ude <Mem|
|00000240| 6f 72 79 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |ory.h>.#|include |
|00000250| 3c 51 44 4f 66 66 73 63 | 72 65 65 6e 2e 68 3e 0d |<QDOffsc|reen.h>.|
|00000260| 23 69 6e 63 6c 75 64 65 | 20 3c 52 65 73 6f 75 72 |#include| <Resour|
|00000270| 63 65 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |ces.h>.#|include |
|00000280| 3c 53 74 61 6e 64 61 72 | 64 46 69 6c 65 2e 68 3e |<Standar|dFile.h>|
|00000290| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 54 6f 6f 6c 55 |.#includ|e <ToolU|
|000002a0| 74 69 6c 73 2e 68 3e 0d | 0d 65 78 74 65 72 6e 20 |tils.h>.|.extern |
|000002b0| 09 09 50 69 63 48 61 6e | 64 6c 65 20 09 67 4d 6f |..PicHan|dle .gMo|
|000002c0| 64 50 69 63 74 3b 20 09 | 09 2f 2f 20 66 6f 72 20 |dPict; .|.// for |
|000002d0| 74 68 65 20 6d 6f 64 69 | 66 69 65 64 20 70 69 63 |the modi|fied pic|
|000002e0| 74 75 72 65 0d 65 78 74 | 65 72 6e 20 09 09 43 54 |ture.ext|ern ..CT|
|000002f0| 61 62 48 61 6e 64 6c 65 | 20 09 67 53 68 61 72 65 |abHandle| .gShare|
|00000300| 64 43 6c 75 74 3b 20 09 | 2f 2f 20 77 65 20 75 73 |dClut; .|// we us|
|00000310| 65 20 74 68 69 73 20 74 | 6f 20 63 72 65 61 74 65 |e this t|o create|
|00000320| 20 74 68 65 20 27 63 6c | 75 74 27 20 72 65 73 6f | the 'cl|ut' reso|
|00000330| 75 72 63 65 0d 09 09 09 | 09 09 09 09 09 09 09 2f |urce....|......./|
|00000340| 2f 20 6c 61 74 65 72 20 | 77 65 20 75 73 65 20 69 |/ later |we use i|
|00000350| 74 20 66 6f 72 20 72 65 | 61 64 69 6e 67 20 69 6e |t for re|ading in|
|00000360| 20 74 68 65 20 27 63 6c | 75 74 27 0d 0d 23 64 65 | the 'cl|ut'..#de|
|00000370| 66 69 6e 65 20 09 66 73 | 46 72 6f 6d 53 74 61 72 |fine .fs|FromStar|
|00000380| 74 20 09 31 0d 0d 2f 2a | 20 63 6c 75 74 6c 65 73 |t .1../*| clutles|
|00000390| 73 46 69 6c 65 2e 63 20 | 2a 2f 0d 73 68 6f 72 74 |sFile.c |*/.short|
|000003a0| 20 09 09 4f 70 65 6e 50 | 69 63 74 75 72 65 46 69 | ..OpenP|ictureFi|
|000003b0| 6c 65 28 53 46 52 65 70 | 6c 79 20 2a 72 65 70 6c |le(SFRep|ly *repl|
|000003c0| 79 29 3b 0d 76 6f 69 64 | 09 09 4b 69 6c 6c 46 69 |y);.void|..KillFi|
|000003d0| 6c 65 28 73 68 6f 72 74 | 20 72 65 66 2c 20 53 46 |le(short| ref, SF|
|000003e0| 52 65 70 6c 79 20 2a 72 | 65 70 6c 79 29 3b 0d 76 |Reply *r|eply);.v|
|000003f0| 6f 69 64 20 09 09 43 6c | 6f 73 65 50 69 63 74 75 |oid ..Cl|osePictu|
|00000400| 72 65 46 69 6c 65 28 73 | 68 6f 72 74 20 72 65 66 |reFile(s|hort ref|
|00000410| 2c 20 53 46 52 65 70 6c | 79 20 2a 72 65 70 6c 79 |, SFRepl|y *reply|
|00000420| 2c 20 50 69 63 48 61 6e | 64 6c 65 20 61 50 69 63 |, PicHan|dle aPic|
|00000430| 74 29 3b 0d 76 6f 69 64 | 20 09 09 53 61 76 65 43 |t);.void| ..SaveC|
|00000440| 4c 55 54 52 65 73 6f 75 | 72 63 65 28 53 46 52 65 |LUTResou|rce(SFRe|
|00000450| 70 6c 79 20 2a 73 66 72 | 29 3b 0d 0d 42 6f 6f 6c |ply *sfr|);..Bool|
|00000460| 65 61 6e 20 09 47 65 74 | 50 69 63 74 42 61 63 6b |ean .Get|PictBack|
|00000470| 28 76 6f 69 64 29 3b 0d | 76 6f 69 64 20 09 09 47 |(void);.|void ..G|
|00000480| 65 74 43 6c 75 74 42 61 | 63 6b 28 53 46 52 65 70 |etClutBa|ck(SFRep|
|00000490| 6c 79 09 2a 73 66 72 29 | 3b 00 00 00 00 00 00 00 |ly.*sfr)|;.......|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000510| 00 00 1b bf 08 53 63 72 | 69 70 74 2e 70 00 00 00 |.....Scr|ipt.p...|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 0e 43 4c 55 54 4c 65 73 | 73 46 69 6c 65 2e 68 43 |.CLUTLes|sFile.hC|
|00000540| 02 00 00 00 54 45 58 54 | 4d 4d 43 43 01 00 00 34 |....TEXT|MMCC...4|
|00000550| 00 00 54 45 58 54 4d 4d | 43 43 01 00 00 34 00 40 |..TEXTMM|CC...4.@|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 a8 e1 a0 3c 00 00 | 04 19 00 00 01 ac 00 00 |.....<..|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 02 2a 25 00 00 00 |........|...*%...|
|00000590| 1e 11 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 17 25 00 | 00 00 1e 1b 0c 54 72 61 |......%.|.....Tra|
|000005c0| 6e 73 66 65 72 43 4b 49 | 44 00 00 00 00 00 00 00 |nsferCKI|D.......|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 02 37 |........|.......7|
|000005e0| 25 00 00 00 1e 2a 0c 47 | 65 74 45 72 72 6f 72 54 |%....*.G|etErrorT|
|000005f0| 65 78 74 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ext.....|........|
|00000600| 00 00 00 1e 00 cc 00 7e | 02 68 02 8f 00 cc 00 7e |.......~|.h.....~|
|00000610| 02 68 02 8f 00 00 00 01 | 00 00 00 00 00 00 00 00 |.h......|........|
|00000620| 00 00 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |.....H..|Monaco..|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 03 00 04 00 5a 00 0c |........|.....Z..|
|00000650| 01 d4 02 70 00 5a 00 0c | 01 d4 02 70 aa 5d 9d fe |...p.Z..|...p.]..|
|00000660| 00 00 02 45 00 00 02 45 | 00 00 00 06 01 00 00 00 |...E...E|........|
|00000670| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 97 |.....n..|.n...>..|
|00000680| c3 fc 1d 04 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |........|.>..MPSR|
|00000690| 00 01 00 0a 03 f0 ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 03 ed ff ff 00 00 00 22 | 00 00 00 00 00 00 00 00 |......."|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+