//---------------------------------------------------//
/*
 *Copyright Bryce Thorup, William Thorup, BitJag 2014
 *
 * Contact: contact@bitjag.com
 *
 *All content developed by BitJag (graphics & Code) is
 *for your personal use only.  Feel free to burn it to a CD, 
 *flash to a SkunkBoard, or use in an emulator.  We 
 *hope you also take the chance to learn from it if needed.
 * 
 *Do not redistribute, duplicate, charge for "handling" 
 *or cost to print, or charge for profit.
 * 
 *If there is someone you know who wants a copy,
 *physical or digital, please direct them to our website.
 *Any other questions about the use of the demo, please
 *shoot us an email.  We will be liberal, promise.
 *
 * http://bitjag.com/
 * 
 *This demo was developed with the Removers Library,
 *which is used under the LGPL licence 2.1, included
 *with the source.  The Removers library is free to 
 *download and use at this location.
 * 
 * http://removers.free.fr/softs/download.php?lang=en
 *
//---------------------------------------------------*/
 
#ifndef _TRAN_INOUT_H
#define _TRAN_INOUT_H

#include <jagdefs.h>
#include <jagtypes.h>
#include <stdlib.h>
#include <interrupt.h>
#include <display.h>
#include <sprite.h>
#include <collision.h>
#include <joypad.h>
#include <screen.h>
#include <blit.h>
#include <fb2d.h>


void gridOut( 

int vertOffset, //The verical offset of each block of the transition (i.e. to overlap the sprite if needed)

int horiOffset, //The horizontal offset of each block of the transition (i.e. to overlap the sprite if needed)

int spaceCount, //Counter used to compare again the amount of spaces we wish to fill the screen with

int spaces, //Total number of spaces you wish the transition to cover (will change depending on sprite size)

int spriteW, //The width of the sprite being used for the transition

int spriteH, //The height of the sprite being used for the transition

screen *srcScreen, //The source screen that the transition sprite is attached to

screen *trgtScreen, //The target screen that the transition sprite will be placed on

int INorOUT //Are we transitioning in or out?  in = 0 , out = 1
  
);

#endif

