| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- /*
- ** Command & Conquer Red Alert(tm)
- ** Copyright 2025 Electronic Arts Inc.
- **
- ** This program is free software: you can redistribute it and/or modify
- ** it under the terms of the GNU General Public License as published by
- ** the Free Software Foundation, either version 3 of the License, or
- ** (at your option) any later version.
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ** GNU General Public License for more details.
- **
- ** You should have received a copy of the GNU General Public License
- ** along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- /***************************************************************************
- ** C O N F I D E N T I A L --- W E S T W O O D A S S O C I A T E S **
- ***************************************************************************
- * *
- * Project Name : Part of the TILE Library *
- * *
- * File Name : TILE.H *
- * *
- * Programmer : Barry W. Green *
- * *
- * Start Date : February 2, 1995 *
- * *
- * Last Update : February 2, 1995 [BWG] *
- * *
- *-------------------------------------------------------------------------*
- * Functions: *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
- #ifndef TILE_H
- #define TILE_H
- /*=========================================================================*/
- /* The following prototypes are for the file: ICONSET.CPP */
- /*=========================================================================*/
- void * Load_Icon_Set(char const *filename, void *iconsetptr, long buffsize);
- void Free_Icon_Set(void const *iconset);
- long Get_Icon_Set_Size(void const *iconset);
- int Get_Icon_Set_Width(void const *iconset);
- int Get_Icon_Set_Height(void const *iconset);
- void * Get_Icon_Set_Icondata(void const *iconset);
- void * Get_Icon_Set_Trans(void const *iconset);
- void * Get_Icon_Set_Remapdata(void const *iconset);
- void * Get_Icon_Set_Palettedata(void const *iconset);
- int Get_Icon_Set_Count(void const *iconset);
- void * Get_Icon_Set_Map(void const *iconset);
- #if (0)
- /*
- ** This is the control structure at the start of a loaded icon set. It must match
- ** the structure in WWLIB.I! This structure MUST be a multiple of 16 bytes long.
- */
- typedef struct {
- short Width; // Width of icons (pixels).
- short Height; // Height of icons (pixels).
- short Count; // Number of (logical) icons in this set.
- // BOOL Allocated; // Was this iconset allocated?
- short Allocated; // Was this iconset allocated?
- long Size; // Size of entire iconset memory block.
- unsigned char *Icons; // Offset from buffer start to icon data.
- long Palettes; // Offset from buffer start to palette data.
- long Remaps; // Offset from buffer start to remap index data.
- long TransFlag; // Offset for transparency flag table.
- unsigned char *Map; // Icon map offset (if present).
- } IControl_Type;
- #endif //(0)
- typedef struct {
- short Width; // Width of icons (pixels).
- short Height; // Height of icons (pixels).
- short Count; // Number of (logical) icons in this set.
- short Allocated; // Was this iconset allocated?
- short MapWidth; // Width of map (in icons).
- short MapHeight; // Height of map (in icons).
- long Size; // Size of entire iconset memory block.
- long Icons; // Offset from buffer start to icon data.
- // unsigned char * Icons; // Offset from buffer start to icon data.
- long Palettes; // Offset from buffer start to palette data.
- long Remaps; // Offset from buffer start to remap index data.
- long TransFlag; // Offset for transparency flag table.
- long ColorMap; // Offset for color control value table.
- long Map; // Icon map offset (if present).
- // unsigned char * Map; // Icon map offset (if present).
- } IControl_Type;
- #endif //TILE_H
|