/* ** 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 . */ /*************************************************************************** ;** 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 : iff * ;* * ;* File Name : FILEPCX.H * ;* * ;* Programmer : Julio R. Jerez * ;* * ;* Start Date : May 2, 1995 * ;* * ;* Last Update : May 2, 1995 [JRJ] * ;* * ;*-------------------------------------------------------------------------* ;* Functions: * ;* GraphicBufferClass* Read_PCX_File (char* name, BYTE* palette,void *buff, long size); ;* GraphicBufferClass* Read_PCX_File (char* name, BYTE* palette, BufferClass& Buff); ;* int Write_PCX_File (char* name, GraphicViewPortClass& pic, BYTE* palette );* ;*= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =*/ #include #include #include #include #ifndef PCX_H #define PCX_H typedef struct { char red ; char green ; char blue ; } RGB ; typedef struct { char id ; char version ; char encoding ; char pixelsize ; short x ; short y ; short width ; short height ; short xres ; short yres ; RGB ega_palette [ 16 ] ; char nothing ; char color_planes ; short byte_per_line ; short palette_type ; char filler [ 58 ] ; } PCX_HEADER ; GraphicBufferClass* Read_PCX_File (char* name, BYTE* palette= NULL,void *buff=NULL, long size=0); GraphicBufferClass* Read_PCX_File (char* name, BufferClass& Buff,BYTE* palette= NULL) ; int Write_PCX_File (char* name, GraphicViewPortClass& pic ,BYTE* palette ) ; #endif