mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
535 B
29 lines
535 B
#ifndef __LOADPPM_H__
|
|
#define __LOADPPM_H__
|
|
|
|
/*
|
|
* ReleasePathList
|
|
* Releases memory allocated when searching for files.
|
|
*/
|
|
void ReleasePathList(void);
|
|
|
|
typedef struct _Image
|
|
{
|
|
UINT uiWidth, uiHeight;
|
|
void *pvImage;
|
|
UINT nColors;
|
|
D3DCOLOR dcolPalette[256];
|
|
} Image;
|
|
|
|
typedef struct _ImageFormat
|
|
{
|
|
int nColorBits;
|
|
BOOL bQuantize;
|
|
int iRedShift, iRedBits;
|
|
int iGreenShift, iGreenBits;
|
|
int iBlueShift, iBlueBits;
|
|
} ImageFormat;
|
|
|
|
BOOL LoadPPM(LPCSTR pszFile, ImageFormat *pifDst, Image *pim);
|
|
|
|
#endif
|