| 1 | //////////////////////////////////////////////////////////////////////////////// |
| 2 | // |
| 3 | // Copyright 2016 RWS Inc, All Rights Reserved |
| 4 | // |
| 5 | // This program is free software; you can redistribute it and/or modify |
| 6 | // it under the terms of version 2 of the GNU General Public License as published by |
| 7 | // the Free Software Foundation |
| 8 | // |
| 9 | // This program is distributed in the hope that it will be useful, |
| 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | // GNU General Public License for more details. |
| 13 | // |
| 14 | // You should have received a copy of the GNU General Public License along |
| 15 | // with this program; if not, write to the Free Software Foundation, Inc., |
| 16 | // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 | // |
| 18 | ////////////////////////////////////////////////////////////////////// |
| 19 | // |
| 20 | // IMAGETYP.H |
| 21 | // |
| 22 | // Created on 09/28/95 BRH |
| 23 | // Implemented on 09/28/95 BRH |
| 24 | // |
| 25 | // 09/28/95 BRH Started this file with the defines for the standard |
| 26 | // types of images and palettes. |
| 27 | // |
| 28 | // 03/06/96 JMI Added FLX8_888 and PFLX enums. |
| 29 | // |
| 30 | // 07/22/96 JMI Added BMP8RLE enum. |
| 31 | // |
| 32 | // 08/01/96 BRH Added static array of image type names for use |
| 33 | // in utilities. For example, it will be used in |
| 34 | // the AnimCreate utility to initialize a listbox of |
| 35 | // image type names from which the user can select |
| 36 | // a destination type for the images. |
| 37 | // |
| 38 | // 09/04/96 JMI Added BMP1, monochrome bitmap. No palette |
| 39 | // (1 == Black, 0 == White). |
| 40 | // |
| 41 | // 10/30/96 JMI Removed all the cool stuff from this file and |
| 42 | // put it in pal.h, pal.cpp, image.h, & image.cpp. |
| 43 | // Although it is a bit more clumsy to add types |
| 44 | // in that everything is not all in one place any- |
| 45 | // more, these things are now more strictly |
| 46 | // associated with CPal and CImage. Also, by moving |
| 47 | // the astrImageTypeNames to w/i CImage, there is |
| 48 | // now only one copy of that array (ms_astrTypeNames). |
| 49 | // Before, there was an individual static copy of |
| 50 | // the array for every module that included it |
| 51 | // (whether included directly or indirectly through |
| 52 | // image.h and/or rspix.h). |
| 53 | // |
| 54 | // 10/30/96 JMI Added a message indicating this was obsoleted as it doesn't |
| 55 | // do anything anymore. |
| 56 | // |
| 57 | // This file contains the registered CImage types that are currently |
| 58 | // supported. Any new image type can be added to this file by |
| 59 | // checking it out and adding a define for the type and adding |
| 60 | // a conversion function to the array. Your conversion function |
| 61 | // needs to be able to convert from one of the standard types to |
| 62 | // your new type. You may choose also to provide a reverse |
| 63 | // conversion function to convert from your type to one of the |
| 64 | // standard types. |
| 65 | // |
| 66 | ////////////////////////////////////////////////////////////////////// |
| 67 | |
| 68 | // This header is no longer used. |
| 69 | #pragma message ( __FILE__ "(" __LINE__ ") : Do not include this header." ) |
| 70 | |
| 71 | #ifndef IMAGETYP_H |
| 72 | #define IMAGETYP_H |
| 73 | |
| 74 | #include "System.h" |
| 75 | |
| 76 | // If PATHS_IN_INCLUDES macro is defined, we can utilized relative |
| 77 | // paths to a header file. In this case we generally go off of our |
| 78 | // RSPiX root directory. System.h MUST be included before this macro |
| 79 | // is evaluated. System.h is the header that, based on the current |
| 80 | // platform (or more so in this case on the compiler), defines |
| 81 | // PATHS_IN_INCLUDES. Blue.h includes system.h so you can include that |
| 82 | // instead. |
| 83 | |
| 84 | // Green include files |
| 85 | #ifdef PATHS_IN_INCLUDES |
| 86 | #include "GREEN/Image/Image.h" |
| 87 | #include "GREEN/Image/imagecon.h" |
| 88 | #else |
| 89 | #include "Image.h" |
| 90 | #include "imagecon.h" |
| 91 | #endif // PATHS_IN_INCLUDES |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | // This is kind of a sux, but the difference between a "to" and |
| 98 | // a "from" is that the "to" arrays are correctly sized and the |
| 99 | // "from" arrays contain one additional unused element. There |
| 100 | // must be at least one thing different between the from and the |
| 101 | // to CDynaLinks. Since the function typedefs and the friends |
| 102 | // were the same, the only options left were to either store them |
| 103 | // in the same array or do this. |
| 104 | #define MAX_IMAGE_TOCONVERTORS (END_OF_TYPES) |
| 105 | #define MAX_IMAGE_FROMCONVERTORS (END_OF_TYPES + 1) |
| 106 | |
| 107 | #endif //IMAGETYP_H |