| Jonny D's Projects | |||||||||||||||||||||||||||||||||||||
|
News GigaSun Jet Tutorials C++ Projects -Beginners SDL Projects -SPriG -Docs -NFont Other Projects Contact Outside Projects
|
SPriG The SDL Primitive Generator, SPriG, is a free and open source C/C++ library that does three main things:
If you like SPriG, check out the parallel page for NFont, an excellent bitmap font library (C/C++). Graphics primitives You can find a full list of functions here. Unimplemented Features: Known Bugs The surface transform
functions have minor bugs like missing the bottom row of pixels. If
you'd like to get involved with making SPriG better, whether you have
feature requests, suggestions, bug reports, or code to submit, check
out the Google Code page:
SPriG on Google Code
Development Notes
11-8-08:
The official release of v1.0.0 is now available! Speed notes (Dirty Rect Demo): On Debian Linux, the dirty rect system gives around a 4x speedup for ~4 sprites. At around 13 sprites, the benefit seems to be gone... But on WinXP, the speedup was crazy! At 100 sprites, I was still using around 2/3 of the full refresh time. This may be due to build option differences between systems, so your best bet is to fiddle with compiler flags to get more speed. Additional feedback would be great from those who are used to SGE or SDL_gfx. If you have any requests, suggestions, or would like to contribute a binary package for any specific OS, please send me an email!
Generic library installation guide: Download the binary distribution for your operating system. Copy headers (sprig.h and sprig_inline.h) to your compiler's /include folder. Copy library files (libsprig.a, sprig.lib, or libsprig.so) to your compiler's /lib folder. Add library to your project's linked libraries (e.g. -lsprig). Include the header (#include "sprig.h"). Building from source using 'make': Download the source distribution. Unzip it and move into the src directory. Run 'make', then 'make install'. Write a program and enjoy! For a more detailed look at installing libraries, see Graphics from Scratch, Using SDL. For more info on what SPriG can do, see A Guide to Graphics with SPriG.
|
||||||||||||||||||||||||||||||||||||