Allegro.cc
Projects
Action252
Adventure22
Arcade216
Board Games30
Demos24
Emulators10
Other68
Puzzle139
Role Playing40
Sports25
Strategy58
Utilities46
Resource Directory
Code Gallery3
Compilers12
Help & Documents13
Libraries63
Media2
Tools8
AASTR2
Source Directory » Libraries » Graphics » AASTR2
Author:
Michael Bukin 
Version:
0.71 
URL:
http://bitblaze.com/allegro/aastr2-0.71.tar.bz2
There is a library by Michael Bukin called AASTR that adds anti-aliased and scaled blits and rotations. If you don't know what that means, well, basically, it providse versions of stretch_blit etc. that look better.

This is a modified version, tentatively titled AASTR2, that adds lots of new features.

To start using this, compile aastr.c, aarot.c, and aautil.c, link with the resulting .o or .obj files, and include the header aastr.h
For documentation, what there is of it so far, look in aastr2.txt and aastr.h. There are also 3 example programs, adaptions of the Allegro examples exalpha, exstretch, and exblend.

Original Features from AASTR:

Anti-aliased stretch_blit, masked_stretch_blit, rotate_blit, masked_rotate_blit, rotate_sprite, etc.
Mix-and-match any combination of source & destination color depth.
Slow, but (barely) fast enough for real-time effects

Improvements added in AASTR2:

Support for any destination type (Mode-X, video-bitmap, whatever)
Non-integer source / destination rectangles
Dithering
Transparency
Alpha-channel RGBA/BGRA8888 or RGBA4444 source
(note that AASTR2 uses a non-standard alpha format, so you'll have to use the provided functions to convert your alpha bitmaps to AASTR2s format)
Blended or lit drawing
"Magic-Pink" filtering
V-flip / H-flip

Also, you can disable the anti-aliasing part of thise library. Why would you want to? So that you can use the other features without the speed penalty of anti-aliasing.
Poll
Is grammer and spelling important?
View Results