Sprig

From GDWiki

Jump to: navigation, search

The SDL Primitive Generator is a C/C++ graphics library that draws graphics primitives (lines, rectangles, polygons) to SDL surfaces. SPriG branched from SGE as a minimalistic package that removed the parts of the library that are not related to graphics primitives. After some time, the library became focused on convenience, adding many inline functions to reduce the load on the programmer. SPriG has become much more of a helper library to supplement the built-in SDL functions with more convenient versions and adding missing functionality.

[edit] Features

  • Pixel (Get/Set)
  • Lines
  • Rectangles
  • Circles
  • Ellipses
  • Arcs
  • Triangles
  • Polygons
  • Bezier curves
  • Image rotation and scaling
  • Several alpha-blending modes

Each primitive can be rendered with anti-aliasing or with one of the blending modes.


[edit] Related Weblinks

Personal tools
Categories