Source

gdt / SpriteEd / SprWork.H

Full commit
/**********************************************************************
 * SprWork.  This contains all the sprite-resource related work (not  *
 * the drawing of such sprites).  But all manipulation of the data and*
 * loading / saving the sprites is here.                              *
 **********************************************************************/

#ifndef __INC_SPRWORK_H
#define __INC_SPRWORK_H
/*-------------------------------------------------------------------------*/
typedef struct _S_RESSPRITECREATIONDATA /* Data to pass to CreateSprite() */
{
	WORD PixelsWidth, PixelsHeight;
	BYTE BitsPerPixel;
} S_RESSPRITECREATIONDATA, *PS_RESSPRITECREATIONDATA;
/*-------------------------------------------------------------------------*/
#ifdef __cplusplus /* Compiling as C++? */
extern "C" { /* These are C functions! */
#endif /*__cplusplus*/

PSPRITE LoadSpriteFromSpriteFile(FILE* fs, S_RESOBJHEADER* WantResObjHeader);
BOOL SaveSpriteToSpriteFile(FILE* fs, S_RESOBJHEADER* ResObjHeader, PSPRITE PSprite);
unsigned long GetSpriteDataSize(PS_RESSPRITEHEADER PSpriteHeader);
PSPRITE CreateSprite(PS_RESSPRITECREATIONDATA scd); /* Creates a sprite */

#ifdef __cplusplus /* C++? */
} /* end extern "C"s */
#endif /*__cplusplus*/
/*-------------------------------------------------------------------------*/
#endif /*__INC_SPRWORK_H*/