mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 18:32:42 +01:00
97e738ba36
- re-arrange includes
28 lines
454 B
C
28 lines
454 B
C
#ifndef TARGA_H
|
|
#define TARGA_H
|
|
|
|
#include <types.h>
|
|
|
|
#pragma pack (push, 1)
|
|
|
|
struct TGAHeader
|
|
{
|
|
u_char descriptionlen;
|
|
u_char cmaptype;
|
|
u_char imagetype;
|
|
u_short cmapstart;
|
|
u_short cmapentries;
|
|
u_char cmapbits;
|
|
u_short xoffset;
|
|
u_short yoffset;
|
|
u_short width;
|
|
u_short height;
|
|
u_char bpp;
|
|
u_char attrib;
|
|
};
|
|
|
|
#pragma pack (pop)
|
|
|
|
bool LoadTGAImage(const char* filename, u_char** data, int& width, int& height, int& bpp);
|
|
|
|
#endif // TARGA_H
|