summaryrefslogtreecommitdiff
path: root/DevIL/src-IL/include/il_pnm.h
diff options
context:
space:
mode:
Diffstat (limited to 'DevIL/src-IL/include/il_pnm.h')
-rw-r--r--DevIL/src-IL/include/il_pnm.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/DevIL/src-IL/include/il_pnm.h b/DevIL/src-IL/include/il_pnm.h
index cce04a87..4ac1d0f2 100644
--- a/DevIL/src-IL/include/il_pnm.h
+++ b/DevIL/src-IL/include/il_pnm.h
@@ -15,6 +15,10 @@
#define PPMPGM_H
#include "il_internal.h"
+#include <string>
+
+using namespace std;
+
#define IL_PBM_ASCII 0x0001
#define IL_PGM_ASCII 0x0002
@@ -22,14 +26,19 @@
#define IL_PBM_BINARY 0x0004
#define IL_PGM_BINARY 0x0005
#define IL_PPM_BINARY 0x0006
+#define IL_PAM 0x0007
+
+enum PamTuples { PAM_BW = 1, PAM_GRAY, PAM_RGB, PAM_BW_ALPHA, PAM_GRAY_ALPHA, PAM_RGB_ALPHA };
typedef struct PPMINFO
{
ILenum Type;
ILuint Width;
ILuint Height;
+ ILuint Depth;
ILuint MaxColour;
ILubyte Bpp;
+ ILubyte TuplType;
} PPMINFO;
ILboolean iIsValidPnm(void);
@@ -39,8 +48,10 @@ ILboolean iSavePnmInternal(void);
ILimage *ilReadAsciiPpm(PPMINFO *Info);
ILimage *ilReadBinaryPpm(PPMINFO *Info);
ILimage *ilReadBitPbm(PPMINFO *Info);
+ILboolean ilReadPam(void);
ILboolean iGetWord(ILboolean);
void PbmMaximize(ILimage *Image);
+ILint DecodeTupleType(string &TupleStr);
#endif//PPMPGM_H