Jump to content
  • Advertisement
Sign in to follow this  
disanti

LibSOL - Simple OpenGL Layer

This topic is 4425 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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:
#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;
}

Project webpage: http://libsol.sf.net/ EDIT: Fixed the link.

Share this post


Link to post
Share on other sites
Advertisement
Looks really nice. You ought to add support for controlling the seutp of the stencil buffer, alpha buffer, etc...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!