Logo by Alkaron (anonymous IP: 18.219.207.11,2258) | ||||||||||||||
| ||||||||||||||
Audio (343) Datatype (51) Demo (203) Development (602) Document (24) Driver (97) Emulation (149) Game (1011) Graphics (500) Library (118) Network (234) Office (66) Utility (932) Video (69) Total files: 4399 Full index file Recent index file
Amigans.net OpenAmiga Aminet IntuitionBase
Support the site
|
SDLSprite ? What's this ? The SDLSprite library in based on the CDXSprite library from the excellent CDX project (but unlikely it's only for Windows...). This C++ class contains the datas and functions required to display animated sprites. A SDLSprite object is created from BMP picture which is used to strore data for the sprite. Beware : All the sprite's frames must be the same width and height and stored in the same BMP file. Download SDLSprite 1.2b (20Ko) The SDLSprite-1.2.tar.gz file also contains another class : SDLSpriteList 1.1 which permits to store sprites in a dynamic fashion. A SDLSpriteList is a linked list of SDLSprite objects, which can be added and removed at run-time. How to use it ? It's simple : 1) Put SDLSprite.cpp, SDLSprite.h, SDLSpriteList.cpp and SDLSpriteList.h in your source directory. 2) Add this line at the beginning of your code : #include "SDLSprite.h" #include "SDLSpriteList.h" 3) Add SDLSprite.cpp and SDLSpriteList.cpp to your project (for example, if you use KDevelop just go to Project choose Add a file to project and choose SDLSprite.cpp and SDLSpriteList.cpp in your source directory) 4) Compile and it works ! To install the AmigaOS 4.0 version copy everything in SDL/ to SDK: .. Spot / Up Rough 2006
|
Copyright © 2004-2024 by Björn Hagström All Rights Reserved |