sources/SpriteWorld.c
DrawDataPtr SWCreateDrawData (void)
{
	DrawDataPtr newDrawData = calloc(1, sizeof(DrawDataRec));
	
  if (newDrawData != NULL) {
		newDrawData->parentSpriteP =  0;
		newDrawData->horizLoc = 0;
		newDrawData->vertLoc = 0;
		newDrawData->horizMoveDelta = 0;
		newDrawData->vertMoveDelta = 0;
		newDrawData->translucencyLevel = 0xFFFF;
		newDrawData->rotation = 0;
		newDrawData->scaledWidth = -1;
		newDrawData->scaledHeight = -1;

		newDrawData->flippedHorizontal = false;
		newDrawData->flippedVertical = false;

		newDrawData->frameHotSpotH = 0;
		newDrawData->frameHotSpotV = 0;
	}
	else
	{
		SWSetStickyIfError( kMemoryAllocationError );
	}

	return newDrawData;
}
///--------------------------------------------------------------------------------------
//	SWCreateDrawData
// This is the structure that holds all the blitter information of Sprites
///--------------------------------------------------------------------------------------
SWCreateDrawData
This is the structure that holds all the blitter information of Sprites
SWCreateDrawData This is the structure that holds all the blitter information of Sprites
DrawDataPtr SWCreateDrawData (void)
{
	DrawDataPtr newDrawData = calloc(1, sizeof(DrawDataRec));
  if (newDrawData != NULL) {
		newDrawData->parentSpriteP =  0;
		newDrawData->horizLoc = 0;
		newDrawData->vertLoc = 0;
		newDrawData->horizMoveDelta = 0;
		newDrawData->vertMoveDelta = 0;
		newDrawData->translucencyLevel = 0xFFFF;
		newDrawData->rotation = 0;
		newDrawData->scaledWidth = -1;
		newDrawData->scaledHeight = -1;
		newDrawData->flippedHorizontal = false;
		newDrawData->flippedVertical = false;
		newDrawData->frameHotSpotH = 0;
		newDrawData->frameHotSpotV = 0;
	}
	else
	{
		SWSetStickyIfError( kMemoryAllocationError );
	}
	return newDrawData;
}
DrawDataPtr SWCreateDrawData ( void ) { DrawDataPtr newDrawData = calloc ( 1 , sizeof ( DrawDataRec ) ) ; if ( newDrawData != NULL ) { newDrawData -> parentSpriteP = 0 ; newDrawData -> horizLoc = 0 ; newDrawData -> vertLoc = 0 ; newDrawData -> horizMoveDelta = 0 ; newDrawData -> vertMoveDelta = 0 ; newDrawData -> translucencyLevel = 0xFFFF ; newDrawData -> rotation = 0 ; newDrawData -> scaledWidth = -1 ; newDrawData -> scaledHeight = -1 ; newDrawData -> flippedHorizontal = false ; newDrawData -> flippedVertical = false ; newDrawData -> frameHotSpotH = 0 ; newDrawData -> frameHotSpotV = 0 ; } else { SWSetStickyIfError ( kMemoryAllocationError ) ; } return newDrawData ; }
SWCreateDrawData
This is the structure that holds all the blitter information of Sprites
SWCreateDrawData This is the structure that holds all the blitter information of Sprites