]> bicyclesonthemoon.info Git - ott/enhance/commitdiff
Pretend to begin having any functionality but Fail spectacularly
authorb <b@0d794883-4e4e-4f65-aa7a-0e7f5947bab5>
Sun, 22 Dec 2013 21:23:50 +0000 (21:23 +0000)
committerb <b@0d794883-4e4e-4f65-aa7a-0e7f5947bab5>
Sun, 22 Dec 2013 21:23:50 +0000 (21:23 +0000)
git-svn-id: svn://botcastle1b/npb@5 0d794883-4e4e-4f65-aa7a-0e7f5947bab5

npb [new file with mode: 0755]
npb.cpp

diff --git a/npb b/npb
new file mode 100755 (executable)
index 0000000..3b2ee72
Binary files /dev/null and b/npb differ
diff --git a/npb.cpp b/npb.cpp
index d7feb1dd44154d4b4d9855858e15fdc24074d85a..5a1b7140e3dff27112b809a83a78d9838407116c 100644 (file)
--- 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 <stdio.h>
 #include <IL/il.h>
 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;
 }