Sour stands for SDL-OpenGL Unsophisticated Rendering and is a simple unit for performing some basic 2D OpenGL drawing with SDL. The interface was written to mimic the software rendering API of SDL as much as possible, to make sure anyone who has ever used SDL will be able to quickly switch to using Sour, without any loss of productivity and development speed.
Sour was originally developed as part of one of my game projects. Since the project did not require any sophisticated graphics and I didn't really want to learn OpenGL thoroughly from the beginning, I decided to make myself a simple rendering unit that could easily replace SDL software drawing.
Sample screenshot, presenting FillRect, TexRect, DrawImage, DrawImgRot and PrintText:
Download: click
The unit comes with a full HTML documentation.
Since I'm an OpenGL newbie myself and parts of the code were taken from google, it would be very appreciated if someone took a look at the code (mainly initialization and setup routines) and pointed out what am I doing wrong and what can be improved.
Bookmarks