Optimized "pixel perfect" collision detection intended for use in 2-D games. This is intended for use with either Allegro or SDL (game-oriented IO libraries), but does not require either.
Be the first to post a text review of PMASK. Rate and review a project by clicking thumbs up or thumbs down in the right column.
Fixed a bug in check_pmask_collision that occured sometimes when the masks have X coordinates that differed by a multiple of 32. This bug occured only in the previous beta, not in version 4. Added a function check_pmask_collision_position, similar to check_pmask_collision, except that if a collision occurs it well report the position of a pixel where the masks collided.
------------------------------------------------------------------- Version History: ------------------------------------------------------------------- Version 5: object-list stuff: seperated code into independant library (collist.c / .h) improved documentation (collist.txt) major API changes major optimizations (100% speed improvement?) improved example program optimized check_pmask_collision (15% speed improvement?) fixed bug in serialization functions optimized draw_allegro_pmask (500% speed improvement?) Version 4: added object-list functions added example program for object-list functions Version 3: fixed a memory leak in create_allegro_pmask / create_sdl_pmask added serialization functions Version 2: changed init_allegro_pmask / init_sdl_pmask to match docs fixed numerous bugs in the documentation added drawing functions (allegro only, no SDL support) added example program Version 1: initial release supports Allegro BITMAPs and SDL Surfaces, but does not require them raw PMASK access ( get_pmask_pixel / set_pmask_pixel ) compile-time option to determine the integer type used for raw data compile-time option to post-pend binary data on to the PMASK struct API supports in-place or allocated PMASKs wrote documentation plain portable C
I've finally gotten around to creating a sourceforge project for PMASK... this will take over as the primary download / web site for PMASK. Version 4 is now up, I'll clean up version 5 for release sometime in the next few days. Be aware that with version 5, the higher-level portions of pmask have split off into a seperate library, which has its own project page at http://sourceforge.net/projects/collist/ though I haven't done the release for that one yet.
Be the first person to add a text review.
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?