/ Garbo
/ Garbo.cdr / mac / util / raytracr.sit / drawit.c.bin ![]() | < prev | next > |
MacBinary | 1989-09-14 | 1.3 KB | [TEXT/KAHL] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
66% | dexvert | AMOS Picture Packer (image/amosPicturePacker) | ext | Supported |
1% | dexvert | Debian floppy split (archive/debianFloppySplit) | ext | Unsupported |
1% | dexvert | Sound Images sound sample (audio/soundImagesSoundSample) | ext | Unsupported |
1% | dexvert | DESI-III drawing (image/desiIIIDrawing) | ext | Unsupported |
1% | dexvert | MS-DOS PMODE extender executable (executable/msdosPMODEExtenderExecutable) | ext | Unsupported |
1% | dexvert | Alien Trilogytextures (other/alienTrilogyTextures) | ext | Unsupported |
1% | dexvert | APT cache data (other/aptCacheData) | ext | Unsupported |
1% | dexvert | CorelTRACE configuration (other/corelTRACEConfiguration) | ext | Unsupported |
1% | dexvert | Dreamcast Disc (other/dreamcastDisc) | ext | Unsupported |
1% | dexvert | EST flat binary (other/estFlatBinary) | ext | Unsupported |
1% | dexvert | Finale Enigma Binary Format (other/finaleEnigmaBinaryFormat) | ext | Unsupported |
1% | dexvert | Sega Genesis/Megadrive/32x ROM (other/genesisROM) | ext | Unsupported |
1% | dexvert | Myth: The Fallen Lords game archive (other/mythTheFallenLordsGameArchive) | ext | Unsupported |
1% | dexvert | Sound Images Sound Driver (other/soundImagesSoundDriver) | ext | Unsupported |
1% | dexvert | Symantec/Norton Config (other/symantecNortonConfig) | ext | Unsupported |
1% | dexvert | Vectrex ROM (other/vectrexROM) | ext | Unsupported |
1% | dexvert | BIS raP encoded format (other/bisraPEncoded) | ext | Unsupported |
1% | dexvert | Pascal Script binary (other/pascalScriptBinary) | ext | Unsupported |
1% | dexvert | 7th Level game data archive (other/seventhLevelGameDataArchive) | ext | Unsupported |
1% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary, Mon Nov 14 06:51:03 1988, modified Fri Apr 28 17:17:58 1989, creator Think C, type ASCII, 1105 bytes "drawit.c" | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 1 | default (weak) | |
100% | lsar | MacBinary | default | |
100% | gt2 | MAC Bilddatei | default (weak) |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [KAHL] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 64 72 61 77 69 74 | 2e 63 00 00 00 00 00 00 |..drawit|.c......|
|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 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 04 51 00 | 00 00 00 9f a4 79 27 a0 |......Q.|.....y'.|
|00000060| 7e 85 86 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |~.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 0d 09 42 79 20 4a | 61 73 6f 6e 20 43 61 73 |/*..By J|ason Cas|
|00000090| 74 61 6e 20 2d 20 72 65 | 61 64 73 20 69 6e 20 61 |tan - re|ads in a|
|000000a0| 20 66 69 6c 65 20 63 61 | 6c 6c 65 64 20 64 61 74 | file ca|lled dat|
|000000b0| 61 2e 64 69 73 20 74 68 | 61 74 20 77 61 73 0d 09 |a.dis th|at was..|
|000000c0| 63 72 65 61 74 65 64 20 | 62 79 20 74 68 65 20 72 |created |by the r|
|000000d0| 61 79 20 74 72 61 63 65 | 72 20 61 6e 64 20 74 68 |ay trace|r and th|
|000000e0| 65 6e 20 64 72 61 77 73 | 20 69 74 2e 20 4e 65 65 |en draws| it. Nee|
|000000f0| 64 73 20 63 6f 6c 6f 72 | 51 44 20 74 6f 20 72 75 |ds color|QD to ru|
|00000100| 6e 2e 0d 2a 2f 0d 0d 23 | 69 6e 63 6c 75 64 65 20 |n..*/..#|include |
|00000110| 22 63 6f 6c 6f 72 2e 68 | 22 0d 23 69 6e 63 6c 75 |"color.h|".#inclu|
|00000120| 64 65 20 22 73 74 64 69 | 6f 2e 68 22 0d 23 69 6e |de "stdi|o.h".#in|
|00000130| 63 6c 75 64 65 20 22 77 | 69 6e 64 6f 77 6d 67 72 |clude "w|indowmgr|
|00000140| 2e 68 22 0d 0d 23 64 65 | 66 69 6e 65 20 58 09 30 |.h"..#de|fine X.0|
|00000150| 0d 23 64 65 66 69 6e 65 | 09 59 09 31 0d 6d 61 69 |.#define|.Y.1.mai|
|00000160| 6e 28 29 0d 7b 0d 72 65 | 67 69 73 74 65 72 20 46 |n().{.re|gister F|
|00000170| 49 4c 45 20 2a 66 3b 0d | 69 6e 74 20 64 69 6d 5b |ILE *f;.|int dim[|
|00000180| 32 5d 3b 0d 72 65 67 69 | 73 74 65 72 20 69 6e 74 |2];.regi|ster int|
|00000190| 20 63 3b 0d 72 65 67 69 | 73 74 65 72 20 69 6e 74 | c;.regi|ster int|
|000001a0| 20 58 70 6f 73 20 3d 20 | 30 2c 20 59 70 6f 73 20 | Xpos = |0, Ypos |
|000001b0| 3d 20 30 3b 0d 52 47 42 | 43 6f 6c 6f 72 20 72 67 |= 0;.RGB|Color rg|
|000001c0| 62 3b 0d 52 65 63 74 09 | 09 62 6e 64 73 3b 0d 57 |b;.Rect.|.bnds;.W|
|000001d0| 69 6e 64 6f 77 50 74 72 | 09 77 69 6e 64 3b 0d 50 |indowPtr|.wind;.P|
|000001e0| 61 6c 65 74 74 65 48 61 | 6e 64 6c 65 09 6d 70 3b |aletteHa|ndle.mp;|
|000001f0| 0d 72 65 67 69 73 74 65 | 72 09 43 54 61 62 50 74 |.registe|r.CTabPt|
|00000200| 72 09 09 09 6d 74 61 62 | 3b 20 0d 0d 09 49 6e 69 |r...mtab|; ...Ini|
|00000210| 74 47 72 61 66 28 26 74 | 68 65 50 6f 72 74 29 3b |tGraf(&t|hePort);|
|00000220| 0d 09 49 6e 69 74 57 69 | 6e 64 6f 77 73 28 29 3b |..InitWi|ndows();|
|00000230| 0d 09 53 65 74 52 65 63 | 74 28 26 62 6e 64 73 2c |..SetRec|t(&bnds,|
|00000240| 20 33 30 2c 20 33 30 2c | 20 34 36 30 2c 20 34 30 | 30, 30,| 460, 40|
|00000250| 30 29 3b 0d 09 6d 70 20 | 3d 20 47 65 74 4e 65 77 |0);..mp |= GetNew|
|00000260| 50 61 6c 65 74 74 65 28 | 39 39 39 29 3b 0d 09 69 |Palette(|999);..i|
|00000270| 66 20 28 6d 70 20 3d 3d | 20 30 4c 29 20 45 78 69 |f (mp ==| 0L) Exi|
|00000280| 74 54 6f 53 68 65 6c 6c | 28 29 3b 0d 09 77 69 6e |tToShell|();..win|
|00000290| 64 20 3d 20 28 57 69 6e | 64 6f 77 50 74 72 29 20 |d = (Win|dowPtr) |
|000002a0| 4e 65 77 43 57 69 6e 64 | 6f 77 28 30 4c 2c 26 62 |NewCWind|ow(0L,&b|
|000002b0| 6e 64 73 2c 22 5c 70 68 | 69 22 2c 31 2c 61 6c 74 |nds,"\ph|i",1,alt|
|000002c0| 44 42 6f 78 50 72 6f 63 | 2c 30 4c 2c 54 52 55 45 |DBoxProc|,0L,TRUE|
|000002d0| 2c 30 4c 29 3b 0d 09 53 | 65 74 50 61 6c 65 74 74 |,0L);..S|etPalett|
|000002e0| 65 28 77 69 6e 64 2c 20 | 6d 70 2c 20 54 52 55 45 |e(wind, |mp, TRUE|
|000002f0| 29 3b 0d 09 41 63 74 69 | 76 61 74 65 50 61 6c 65 |);..Acti|vatePale|
|00000300| 74 74 65 28 77 69 6e 64 | 29 3b 0d 09 69 66 20 28 |tte(wind|);..if (|
|00000310| 47 65 74 50 61 6c 65 74 | 74 65 28 77 69 6e 64 29 |GetPalet|te(wind)|
|00000320| 20 3d 3d 20 30 4c 29 20 | 45 78 69 74 54 6f 53 68 | == 0L) |ExitToSh|
|00000330| 65 6c 6c 28 29 3b 0d 09 | 53 65 74 50 6f 72 74 28 |ell();..|SetPort(|
|00000340| 77 69 6e 64 29 3b 0d 09 | 66 20 3d 20 66 6f 70 65 |wind);..|f = fope|
|00000350| 6e 28 22 64 61 74 61 2e | 64 69 73 22 2c 22 72 62 |n("data.|dis","rb|
|00000360| 22 29 3b 0d 09 69 66 20 | 28 66 20 3d 3d 20 4e 55 |");..if |(f == NU|
|00000370| 4c 4c 29 20 72 65 74 75 | 72 6e 3b 0d 09 69 66 20 |LL) retu|rn;..if |
|00000380| 28 21 20 66 72 65 61 64 | 28 26 64 69 6d 2c 73 69 |(! fread|(&dim,si|
|00000390| 7a 65 6f 66 28 69 6e 74 | 29 2c 32 2c 66 29 29 20 |zeof(int|),2,f)) |
|000003a0| 67 6f 74 6f 20 65 6e 64 | 3b 0d 0d 09 53 65 74 52 |goto end|;...SetR|
|000003b0| 65 63 74 28 26 62 6e 64 | 73 2c 20 33 30 2c 20 32 |ect(&bnd|s, 30, 2|
|000003c0| 33 30 2c 20 34 30 2c 20 | 32 34 30 29 3b 0d 09 6d |30, 40, |240);..m|
|000003d0| 74 61 62 20 3d 20 28 2a | 2a 6d 70 29 2e 70 6d 49 |tab = (*|*mp).pmI|
|000003e0| 6e 66 6f 3b 0d 09 77 68 | 69 6c 65 20 28 28 63 20 |nfo;..wh|ile ((c |
|000003f0| 3d 20 66 67 65 74 63 28 | 66 29 29 20 21 3d 20 45 |= fgetc(|f)) != E|
|00000400| 4f 46 29 20 7b 0d 09 09 | 69 66 20 28 58 70 6f 73 |OF) {...|if (Xpos|
|00000410| 20 3e 3d 20 34 32 30 20 | 2f 2a 64 69 6d 5b 58 5d | >= 420 |/*dim[X]|
|00000420| 2a 2f 29 20 7b 0d 09 09 | 09 58 70 6f 73 20 3d 20 |*/) {...|.Xpos = |
|00000430| 30 3b 0d 09 09 09 59 70 | 6f 73 2b 2b 3b 0d 09 09 |0;....Yp|os++;...|
|00000440| 09 7d 0d 09 09 69 66 20 | 28 59 70 6f 73 20 3e 3d |.}...if |(Ypos >=|
|00000450| 20 64 69 6d 5b 59 5d 29 | 20 62 72 65 61 6b 3b 0d | dim[Y])| break;.|
|00000460| 09 09 69 66 20 28 63 20 | 21 3d 20 30 29 20 7b 0d |..if (c |!= 0) {.|
|00000470| 09 09 09 53 65 74 43 50 | 69 78 65 6c 28 58 70 6f |...SetCP|ixel(Xpo|
|00000480| 73 2c 20 59 70 6f 73 2c | 20 26 28 20 6d 74 61 62 |s, Ypos,| &( mtab|
|00000490| 5b 63 5d 29 29 3b 0d 09 | 09 09 7d 0d 09 09 58 70 |[c]));..|..}...Xp|
|000004a0| 6f 73 2b 2b 3b 0d 09 09 | 7d 0d 09 77 68 69 6c 65 |os++;...|}..while|
|000004b0| 20 28 21 42 75 74 74 6f | 6e 28 29 29 3b 0d 65 6e | (!Butto|n());.en|
|000004c0| 64 3a 0d 09 66 63 6c 6f | 73 65 28 66 29 3b 09 0d |d:..fclo|se(f);..|
|000004d0| 7d 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 |........|........|
+--------+-------------------------+-------------------------+--------+--------+