| 1 | /*************************************************************************** |
| 2 | image.h - description |
| 3 | ------------------- |
| 4 | begin : Sat Aug 19 2000 |
| 5 | copyright : (C) 2000 by Waldemar Baraldi |
| 6 | email : [email protected] |
| 7 | ***************************************************************************/ |
| 8 | |
| 9 | /*************************************************************************** |
| 10 | * * |
| 11 | * This program is free software; you can redistribute it and/or modify * |
| 12 | * it under the terms of the GNU General Public License as published by * |
| 13 | * the Free Software Foundation; either version 2 of the License, or * |
| 14 | * (at your option) any later version. * |
| 15 | * * |
| 16 | ***************************************************************************/ |
| 17 | |
| 18 | |
| 19 | #ifndef IMAGE_H |
| 20 | #define IMAGE_H |
| 21 | |
| 22 | #include "graphic.h" |
| 23 | #include "str.h" |
| 24 | #include "SDL.h" |
| 25 | |
| 26 | class Image: public Graphic{ |
| 27 | |
| 28 | public: |
| 29 | |
| 30 | /** Constructor. |
| 31 | @param filename La imagen filename es cargada. Debe ser distinto de NULL. |
| 32 | */ |
| 33 | Image(Str * filename=NULL); |
| 34 | |
| 35 | Image(Image * im); |
| 36 | |
| 37 | /** Destructor.*/ |
| 38 | virtual ~Image(){}; |
| 39 | |
| 40 | protected: |
| 41 | |
| 42 | void load(Str * filename); |
| 43 | }; |
| 44 | #endif |
| 45 |