-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcData.h
51 lines (43 loc) · 941 Bytes
/
cData.h
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#pragma once
#include "cTexture.h"
#include "Globals.h"
//Image array size
#define NUM_IMG 20
//Image identifiers
#define IMG_BLOCKS 0
#define IMG_PLAYER 1
#define IMG_PLAYER1 2
#define IMG_MISSILE 3
#define IMG_TAIL_MISSILE 4
#define IMG_SPACE 5
#define IMG_MENU_TITOL 6
#define IMG_MENU_SELECTED 7
#define IMG_TILES_001 8
#define IMG_TILES_002 9
#define IMG_SPACE_2 10
#define IMG_ENEMY1 11
#define IMG_ENEMY2 12
#define IMG_ENEMY3 13
#define IMG_BOSS1 14
#define IMG_BOSS2 15
#define IMG_GAMEOVER 16
#define IMG_MISSILES_ENEMIC 17
#define IMG_MISSILES_BOSS 18
#define IMG_EXPLOSIONS1 19
/*
#define IMG_ENEMY1 2
//#define IMG_ENEMY2 3
#define IMG_SHOOT 4
...
*/
class cData
{
public:
cData(void);
~cData(void);
int GetID(int img);
void GetSize(int img,int *w,int *h);
bool LoadImage(int img,char *filename,int type = GL_RGBA);
private:
static cTexture texture[NUM_IMG];
};