Added glMapBuffer cast

Cast void* to char* to remove compiler warning in C++ project in VS2013
Merge pull request #29 from devnought/dev

Added glMapBuffer cast
Fixed bug on ubo allocation, formatting fixes
UBO fixes

- correct fix for ubo memroy allocation (use returned alignment instead
of struct size)
- separated convex fill to own command type
- moved uboPos to call struct
gl3buf refactoring

- implemented missing scissor from draw triangles
- buffer a whole frame of uniforms
- moved paint to uniform conversion earlier
- simplified render loops and data structures
- renamed bunch of things
- combined shaders, use define to disable AA
Added an inner frame CPU timer.
Needs names for the UI components to distinguish them, and probably stacking vertically for easier comparison.
Added GPU timer and fixed up formatting.
Bug fix for index into queries.
Added name to timer render.
Changed name of new functionality to keep other examples compiling.
Merge pull request #31 from dougbinks/timing

Timing for CPU inner frame and GPU inner frame added
Quick guard against NULL ptr dereference of texture type on CPU side