-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgfx_sprite.h
34 lines (28 loc) · 862 Bytes
/
gfx_sprite.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
/************************************************************************************
* gfx_sprite.h
*
* descp : structs/prototypes for in-game sprites.
*
* auth : javery
*
* path : C:\Program Files\Microsoft Visual Studio\MyProjects\PrimaryCubes3D\gfx_sprite.h
*
* iDate : 09/03/06
* version:
************************************************************************************/
#ifndef __GFX_SPRITE_H__
#define __GFX_SPRITE_H__
#include <allegro.h>
#include "common.h"
typedef struct Sprite_t
{
int xDimen,yDimen,bitDepth;
BITMAP*data;
Vect3_t lastPosition,currentPosition;
float xFactor,yFactor; // scaling factors
char* spriteID;
}*pSprite_t;
c_boolean GFX_SPR_LoadSprite( pSprite_t , char* );
void GFX_SPR_DeleteSprite( pSprite_t );
void GFX_SPR_DrawSprite( pSprite_t , BITMAP* , float , float );
#endif