/*
 * $Id$
 */
 
/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * Other licensing options are available on request; please
 * contact the author for more information.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * The Original Code is Copyright (C) 2007 Sarah Kelley
 * All rights reserved.
 *
 */


/*
 *   Structures and defines used throughout the sarahtexture suite.
 */


/*
 *  This result structure is used to hold intermediate results
 *  before we're ready to pass them back to Blender.
 *  (This arose because of some threading issues with the plugin API
 *  in Blender 2.42/2.43, and may be less necessary in the future.)
 */
typedef struct Result {
	float intensity;
	float red;
	float green;
	float blue;
	float alpha;
	float xnormal;
	float ynormal;
	float znormal;
} Result;




/*
 *  Structure used to pass data to/from the plugin.
 *  result[0] 	Intensity value        0.0 to 1.0
 *  result[1] 	Red color value        0.0 to 1.0
 *  result[2] 	Green color value      0.0 to 1.0
 *  result[3] 	Blue color value       0.0 to 1.0
 *  result[4] 	Alpha color value      0.0 to 1.0
 *  result[5] 	X normal displacement
 *  result[6] 	Y normal displacement
 *  result[7] 	Z normal displacement 
 */
#define RESULT_INTENSITY  0
#define RESULT_RED        1
#define RESULT_GREEN      2
#define RESULT_BLUE       3
#define RESULT_ALPHA      4
#define RESULT_XNORMAL    5
#define RESULT_YNORMAL    6
#define RESULT_ZNORMAL    7
