Category : Files from Magazines
Archive   : DDJ9407C.ZIP
Filename : RAYTGA.H

 
Output of file : RAYTGA.H contained in archive : DDJ9407C.ZIP
/***********************************************************************/
/*** (C) Copyright A.MANGEN 1994 ***/
/***********************************************************************/
/*** PROJECT : RAY TRACING PROGRAM ***/
/*** PROGRAM NAME: RAYTGA.H ***/
/*** VERSION : 1.1 ***/
/***-----------------------------------------------------------------***/
/*** DESCRIPTION : TARGA Graphic File Interface - Include File ***/
/***********************************************************************/

/***********************************************************************/
/*** TGAHeader : Basic structure for the TARGA files ***/
/***********************************************************************/

struct TGAHeader {
char IdLength,ColorMapType,ImageTypeCode;
int ColorMapOrigin,ColorMapLength;
char ColorMapEntrySize;
int XOrigin,YOrigin,Width,Height;
char ImagePixelSize,ImageDescriptorByte;
};

/***********************************************************************/
/*** TGAFile : Base class for TARGA files ***/
/***********************************************************************/

class TGAFile
{ FILE *fp;
struct TGAHeader H;
int BytesPerPixel;
public:
TGAFile(char *FileName,int Width,int Height,int BW);
// Constructor : Create new file
~TGAFile(); // Destructor : Close the file
void WritePixel(int n,char *color); // Write a row of pixels
};


  3 Responses to “Category : Files from Magazines
Archive   : DDJ9407C.ZIP
Filename : RAYTGA.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/