From 4aa7bb2cda3770ac349c8cd131bbbe46ae3f10ca Mon Sep 17 00:00:00 2001 From: b Date: Sun, 22 Dec 2013 21:23:50 +0000 Subject: [PATCH] Pretend to begin having any functionality but Fail spectacularly git-svn-id: svn://botcastle1b/npb@5 0d794883-4e4e-4f65-aa7a-0e7f5947bab5 --- npb | Bin 0 -> 6770 bytes npb.cpp | 32 +++++++++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100755 npb diff --git a/npb b/npb new file mode 100755 index 0000000000000000000000000000000000000000..3b2ee72963517b5044afa2d6a675086792b85b2a GIT binary patch literal 6770 zcmb7IYiwM_8J&Cg+Fr16oCjb?APa1QA!MBwAx&tpV>^k1lbFN-Lx7uoT<>nPFLv(+ zZwdt11d=9E4UH%i)KV2t|5QXOYNHlaNlkgEY86r;wN*>03X(&O6iT2-P`2mH+}W&` z(#J@1zd7@r`Q~wFzIp8K8(3o)hS0$jK0$P3kL6zmx#B#fStbI)FFM40afN6^7In++ z2M19WK%oZYS%^OBfR{Z0J>pDYM(SvrQ3jSp3^obD$nv61>1E!xphN6JfnG$`OT7uP z2>eCRG5Vonq@Hy!t^;0&x*2z{n|iDmo0zxH7K zYwzA$qV8NoKO(v(&Oy`x-I0MD+TvKzHtS%ZWI6KWIChB3h-stLzvIV0yz#Hckem{( zsX+mxSJmP18axAO_D_cZ5}P!DB>s5~CjYTIoCF@jyka)>&m-QB@n?Ug(>lhr;Krg0 z7I09P3%h@4gB^47PCQv~o&3;-o>VsD422^pN7!~eoz2(2NY5*7o$+OGAr9&+u^f>VA81XsK8`(7(FJUV=;&)IT)w zU)9<(@E7+%#qkax4$dz%^RK^wGz0bg&szW6=Xc+m6WB8OmZoJ$4 zVEia7iM_|%57DdgWcw>tkjl!5*T%;Vx%0(QBFR7gvAO>j$KRc6oOu1?A`1Rg7Cfm7 z?(Yp+y6{OBeqlZd_kWoNL~*7x@1M8_O?tV3dB$rWjE{_c?;1EPRDY>%$NANEP=j`y zDxt_J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p @@ -4,13 +4,43 @@ // // // // ~~bicyclesonthemoon +#define INPIX_MUSTARD 1 +#define OUTPIX_MUSTARD 2 +#define NPBPIX_MUSTARD 3 +#define OK 0 + +#include #include int main (int argc, const char *argv[]) { + ILuint inPix, outPix, npbPix; + ILubyte q=1; + if(argc<3) { - printf("arguments\n"); + printf("npb inPix outPix [q]\n"); } return 0; + if (argc>=4) + { + if (argv[3][0]=='q' || argv[3][0]=='Q') + q=0; + } + + ilInit(); + ilEnable(IL_ORIGIN_SET); + ilGenImages(1, &inPix); + ilBindImage(inPix); + if(ilLoadImage(argv[1])) + { + ilDeleteImages(1, &inPix); + if(q) printf("Input file mustard\n"); + return INPIX_MUSTARD; + } + //ok + if(q) printf("OK\n"); + ilDeleteImages(1, &inPix); + printf("TEST\n"); + return OK; } -- 2.30.2