Texturing and Cube example

Closes #49
What's wrong with it? I hate the contrary - storing and calling the function pointer where we can use a simple branch. Not only we have other similar branches already, this is also easier to follow when reading.