mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 13:13:58 +00:00
This is a modified version of TinyGL 0.4 intended for use with ResidualVM. The changes made from the original version of TinyGL 0.4 are: * Changed file extensions from *.c to *.cpp to compile as C++. * Included only files needed by ResidualVM. * Changed include paths in source files. * Added needed type casts and fixes for proper compile. * Added 't/T' prefix to prevent OpenGL name clashes. * Added light shading texture mapping mode. * Removed unneeded code. * Introduced second 32-bit z-buffer for 3d objects only, and kept 16-bit only for static z-buffer bitmaps. * Added support for drawing in shadow mode (generate mask and polygon shadow). * Added support for reading in RGB/BGR-textures, although the only internal format is still RGB565 * Added TGL_BGR/TGL_RGB definitions to gl.h, verifying against SDL_opengl.h that the values are ok. * Added additional functions missing, like glColor4ub. (To make the code similar with the GL-code we use)