From: b Date: Sun, 22 Dec 2013 21:23:50 +0000 (+0000) Subject: Pretend to begin having any functionality but Fail spectacularly X-Git-Url: http://bicyclesonthemoon.info/git-projects/?a=commitdiff_plain;h=4aa7bb2cda3770ac349c8cd131bbbe46ae3f10ca;p=ott%2Fenhance Pretend to begin having any functionality but Fail spectacularly git-svn-id: svn://botcastle1b/npb@5 0d794883-4e4e-4f65-aa7a-0e7f5947bab5 --- diff --git a/npb b/npb new file mode 100755 index 0000000..3b2ee72 Binary files /dev/null and b/npb differ diff --git a/npb.cpp b/npb.cpp index d7feb1d..5a1b714 100644 --- a/npb.cpp +++ b/npb.cpp @@ -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; }