OS4Depot.net 20130227_1013
  Home Search Mirrors Contact Info Credits

 Readme data for Root » Development » Library » Graphics » sdl_sprite.lha

Description: SDLSprite - Display animated sprites
Install: sdl_sprite.lha
Size: 35kb 5
Version: 1.2b
Date: 08 Oct 06
Author: Edorul, AmigaOS 4.0 compile by Spot / Up Rough
Submitter: Spot / Up Rough
Email: spot/triad se
Homepage: http://membres.lycos.fr/edorul/
Requirements: SDL
Category: development/library/graphics
License: Other
Distribute: yes
Min OS Version: 4.0
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 (c) 2004-2013 Björn Hagström. All rights reserved.
OS4 and its logos are registered trademarks of Hyperion Entertainment