Original Post
Hello! I wrote LibSOL as a small and simple framework to get your OpenGL applications up and running in as little time as possible, and size matters. My Windows build of LibSOL comes down to a 10.5 kilobyte dynamic link library, if thats not impressive I don't know what is. It currently runs on both Windows, and Linux. If someone could port it to Mac OS X that would be great, I do not have the resources to do that. Both mouse and keyboard input work too. So please give it a try! :) Note that there are no prebuilt binaries available for download, you will have to compile them. Here is a code example: Project webpage: http://libsol.sf.net/ EDIT: Fixed the link.
#include <SOL/SOL.h>
#include <GL/GL.h>
int main(int argc, char* argv[])
{
//Make a structure of window properties
static SOL_WINDOW window = {
800, //width
600, //height
16, //bits per pixel
0}; //fullscreen, 1 = true
//Create a window
SOL_CreateWindow(&window);
//Set the window caption
SOL_SetWindowCaption("SOL Example Application");
//Main loop
while(SOL_Update()) {
glClear(GL_COLOR_BUFFER_BIT);
}
//Destroy the window
SOL_DestroyWindow();
//Return
return 0;
}