OpenGL Buffer Feeding.

Yeah I know, I named the pull Request stupidly.

Before you commit this, I'd like you to check it out and see if you like it. I tried to edit Smart's source as little as possible and so I made a file called SharedLibrary. It's a stupid name since it's vague but meh.

Anyway, this is for the communication between the DLL and Smart. It reads the pixels every buffer swap and gives them to smart with the option of flipping the image which I enabled by default. The only function that was necessary was the:

void GetBuffer(IntBuffer Buffer);

All the others are there because that's what I was testing with at first and I needed it for testing on Windows 8 as I couldn't load OpenGL and used Bitmaps for testing. BUT I got it working on my mom's computer with Smart and OpenGL itself. Works perfectly.


                     OpenGL BackBuffer
                  /                    \
                 /                       \
                /                          \
               /                             \
           SmartJNIPointer                  Graphics card
                                                  \
                                                    Screen

It writes to Smart's pointer before it gets to the screen. Should be no problems with delays or anything at all.