SDL_mask

所属分类:2D图形编程
开发工具:C/C++
文件大小:210KB
下载次数:4
上传日期:2009-03-13 23:32:13
上 传 者mdkmdk
说明:  SDL library to support rapid detection of collisions Pixel Perfect. It can be added to the game perfect collisions without loss FPS 贸w as in many other libraries, and all this by creating a grade, keeping the mask bitmap.

文件列表:
SDL_mask\collision.cpp (3110, 2009-01-01)
SDL_mask\collision.h (520, 2008-12-25)
SDL_mask\compile.bat (50, 2008-12-30)
SDL_mask\example\back.bmp (921654, 2008-12-26)
SDL_mask\example\compile.bat (106, 2008-12-30)
SDL_mask\example\example.cpp (4108, 2008-12-30)
SDL_mask\example\example.exe (264957, 2008-12-30)
SDL_mask\example\mask.bmp (921654, 2008-12-25)
SDL_mask\example\player.bmp (7654, 2008-12-25)
SDL_mask\example\player2.bmp (7654, 2008-12-25)
SDL_mask\include\SDL_mask.h (520, 2008-12-25)
SDL_mask\include.h (235, 2008-12-30)
SDL_mask\lib\libSDL_mask.a (3274, 2008-12-30)
SDL_mask\screen_basic.cpp (1036, 2008-12-26)
SDL_mask\screen_basic.h (61, 2008-12-26)
SDL_mask\example (0, 2009-01-02)
SDL_mask\include (0, 2008-12-30)
SDL_mask\lib (0, 2008-12-30)
SDL_mask (0, 2008-12-30)
SDL_mask\example\SDL.dll (321536, 2007-12-30)

----------------------cybek---------------------- SDL_Mask v1.0 - mask collision detection library ------------------------------------------------- library: class Collision - to create SDL_Surface mask (GetPixel only support 8,16,32 bpp) bool CheckCollision - detect Box collision bool CheckCollision - detect Mask collision with PixelSkip (def. 1) using: Collision mask; mask.set(SDL_Surface *); CheckCollision(pos_x, pos_y, width, height, pos_x2, pos_y2, width2, height2) CheckCollision(&Collsiion, pos_x, pos_y, &Collision2, pos_x2, pos_y2) Return 1 if collide, 0 if non-collide. Destroyer automatically clean Collision mask if program exit. example using in "example" If you like this library, please, write it`s name and author in game, and/or link to my page: http://sourceland.xt.pl Mail: nomad.c4@gmail.com

近期下载者

相关文件


收藏者