fixed some assert tests in the opengl texture code.
Made the geometry module inline.
Fixed up pixel formats and surfaces to be a lot nicer.
Tidied up textures and surfaces some more. Catering for a greater number of uses. Still need to create an image caching mechanism and possible abstract image loading.