OIMGRES.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Seven Kingdoms: Ancient Adversaries
  3. *
  4. * Copyright 1997,1998 Enlight Software Ltd.
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. *
  19. */
  20. //Filename : OIMAGERES.H
  21. //Description : Object ImageRes
  22. #ifndef __OIMAGERES_H
  23. #define __OIMAGERES_H
  24. #ifndef __ORESX_H
  25. #include <ORESX.h>
  26. #endif
  27. //----------------------------------------//
  28. class VgaBuf;
  29. class ImageRes : public ResourceIdx
  30. {
  31. public:
  32. ImageRes() {;}
  33. ImageRes(char* resFile, int readAll=0, int useVgaBuf=0);
  34. void put_front(int,int,char*, int compressFlag=0);
  35. void put_back(int,int,char*, int compressFlag=0);
  36. void put_front(int,int,int, int compressFlag=0);
  37. void put_back(int,int,int, int compressFlag=0);
  38. void put_join(int,int,char*);
  39. char* get_ptr(char* imageName) { return ResourceIdx::read(imageName); }
  40. void put_large(VgaBuf*,int,int,char*); // put a large image, over 64K
  41. void put_large(VgaBuf*,int,int,int);
  42. void put_to_buf(VgaBuf* vgaBufPtr, char* imageName);
  43. void put_to_buf(VgaBuf* vgaBufPtr, int bitmapId);
  44. };
  45. extern ImageRes image_icon, image_interface, image_menu, image_button, image_spict;
  46. extern ImageRes image_encyc, image_tpict, image_tutorial;
  47. #ifdef AMPLUS
  48. extern ImageRes image_menu_plus;
  49. #endif
  50. extern ImageRes& image_menu2;
  51. //--------------------------------------------//
  52. #endif