loadpcxc.cpp File Reference

Loading and storing images in PCX format, written in C. More...

#include <stdio.h>
#include <cstring>
#include "basestrm.h"
#include "misc.h"
#include "loadpcx.h"

Include dependency graph for loadpcxc.cpp:

Go to the source code of this file.

Classes

struct  tpcxheader

Functions

void writepcx (const ASCString &name, int x1, int y1, int x2, int y2, dacpalette256 pal)
void writepcx (const ASCString &name, const Surface &s)
void writepcx (const ASCString &name, const Surface &s, const SDLmm::SRect &rect)


Detailed Description

Loading and storing images in PCX format, written in C.

There is also an optimized assembler version for the DOS version around which is called loadpcx.cpp , but not used any more.

Definition in file loadpcxc.cpp.


Function Documentation

void writepcx ( const ASCString name,
const Surface s,
const SDLmm::SRect &  rect 
)

Definition at line 371 of file loadpcxc.cpp.

References tn_file_buf_stream::seek(), tnstream::writeChar(), tnbufstream::writedata(), and tnstream::writing.

void writepcx ( const ASCString name,
const Surface s 
)

Definition at line 366 of file loadpcxc.cpp.

References writepcx().

void writepcx ( const ASCString name,
int  x1,
int  y1,
int  x2,
int  y2,
dacpalette256  pal 
)

Definition at line 277 of file loadpcxc.cpp.

References agmp, tgraphmodeparameters::byteperpix, getpixel(), tn_file_buf_stream::seek(), tnstream::writeChar(), tnbufstream::writedata(), and tnstream::writing.


Generated on Mon May 21 01:37:17 2012 for Advanced Strategic Command by  doxygen 1.5.1