Example of LibSOL Usage
#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;
}
License
LibSOL is licensed under the Lesser GPL:
LESSER GENERAL PUBLIC LICENSE
SOL - Simple OpenGL Layer
Copyright (C) 2006 John DiSanti.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA