-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTexture.h
More file actions
35 lines (31 loc) · 743 Bytes
/
Texture.h
File metadata and controls
35 lines (31 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef TEXTURE_H
#define TEXTURE_H
#include <stdio.h>
#include <stdlib.h>
#pragma pack(push)
#pragma pack(2)
typedef struct _FileHeader
{
unsigned char ID[2];
unsigned long FileSizepr;
unsigned long Reserved;
unsigned long DataOffset;
} FileHeader;
typedef struct _InfoHeader
{
unsigned long HeaderSize;
unsigned long Width;
unsigned long Height;
unsigned short Planes;
unsigned short BitsPerPixel;
unsigned long Compression;
unsigned long BmpDataSize;
unsigned long HResolusion;
unsigned long VResolusion;
unsigned long UsedColor;
unsigned long ImportantColors;
} InfoHeader;
#pragma pack(pop)
#endif // #define TEXTURE_H
//////////////////////////////////////////////////////////////////////////
//Jenny Liu . April, 2013