// File : fwCostum.h // Author : John Wojcik ( QuietBloke ) // Created : June 2000 // Desc : Expose external functions of the 2D Game Framework // Costume manager. This manager allows textures to // easily be loaded into video memory and then applied // to a Sprite. This manager allows multiple image // textures to be loaded with a single call. Textures // can be 4,8 or 16 bit TIM's. // // History : // Date Author Description // -------- --------------- ---------------------------------------- #ifndef __FWCOSTUM__ #define __FWCOSTUM__ // NOTE : MAX_CUSTUMES IS DEFINED IN MAIN HEADER FILE fw.h // #define MAX_COSTUMES 50 // Function : fwCostumeAdd // Parameters // address : Address in main memory of the TIM // xNumber : Number of internal images within the x direction. // yNumber : Number of internal images within the y direction. // Returns // int : A costume number. If more than 1 image generated then // the ID of the first costume is returned. // // Function : fwCostumeApplyToSprite // Parameters // sprite : Pointer to a GsSprite // Costume : The ID of the costume to be applied to the sprite. // Returns // void int fwCostumeAdd ( long address, int xNumber, int yNumber ); void fwCostumeApplyToSprite ( GsSPRITE *sprite, int Costume ); #endif