Skip to main content
GameDev.net gamedev.net
🔒 Locked

Looking for a simple and lightweight 2d primitives c++ library

Started by glaskows Jun 9, 2010 at 11:36 PM 1 replies 1.7k views
Original Post
glaskows
glaskows
Hi,
I am working on a RT project and I need to visually debug it. For that I need to put some marks (triangles, recs, circles, etc) of different sizes on top of the image's output.
The program works with an internal representation of a visual buffer (float argb), so I need a simple 2d primitive shapes drawing c++ library which can be attached somehow to this buffer.
I have two at the moment, libxmi and cairo.
The first one is old and difficult to merge with the project because it has lots of dependencies with the tool configure, and I use scons.
Cairo doesn't have that problem but it is too much for my needs.
I was thinking in doing one myself, but I don't want to waste too much effort on this task.

Thanks for your help!
glaskows
glaskows
If it is of any help for anyone... at the end I am gonna use qt, through the QtImage class, which lets you direct (and efficient) access to pixel data.
Mathucub
Mathucub
Use SOIL. (Simple OpenGL Image Library)
Its public domain, really lightweight and wicked powerful.
Cross platform too, with one small tweak I'm using the same lib on
Windows, OSX, and iPhone.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.