OWL

OWL - Open Windowing Library


SoftwareContext

It’s a simple class letting you use software (CPU) graphics in your project. It has 5 functions:

Example of usage:

OWL::SoftwareContext context;
OWL::Window window;
window.setContext(context);

context.setSize(window.getSize());
context.clear(OWL::Vec4b(255, 100, 45, 255)); /* clears the screen in orange color */

for(unsigned int i = 25; i < 50; i++) {
	for(unsigned int j = 60; j < 100; j++) {
		context.getPixelData()[j*context.getSize().x+i] = OWL::Vec4ub(60, 90, 200, 255); /* Draws a blue rectangle */
	}
}

context.blitToScreen();