Blender V2.61 - r43446

BKE_plugin_types.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
00019  * All rights reserved.
00020  *
00021  * The Original Code is: all of this file.
00022  *
00023  * Contributor(s): none yet.
00024  *
00025  * ***** END GPL LICENSE BLOCK *****
00026  */
00027 #ifndef BKE_PLUGIN_TYPES_H
00028 #define BKE_PLUGIN_TYPES_H
00029 
00035 struct ImBuf;
00036 
00037 typedef int (*TexDoitold)(int stype, void *cast, float *texvec, float *dxt, float *dyt);
00038 typedef int (*TexDoit)(int stype, void *cast, float *texvec, float *dxt, float *dyt, float *result );
00039 typedef void (*SeqDoit)(void*, float, float, int, int,
00040                         struct ImBuf*, struct ImBuf*,
00041                         struct ImBuf*, struct ImBuf*);
00042 
00043 typedef struct VarStruct {
00044     int type;
00045     char name[16];
00046     float def, min, max;
00047     char tip[80];
00048 } VarStruct;
00049 
00050 typedef struct _PluginInfo {
00051     char *name;
00052     char *snames;
00053 
00054     int stypes;
00055     int nvars;
00056     VarStruct *varstr;
00057     float *result;
00058     float *cfra;
00059 
00060     void (*init)(void);
00061     void (*callback)(int);
00062     void (*tex_doit)(void *);
00063     SeqDoit seq_doit;
00064     void (*instance_init)(void *);
00065 } PluginInfo;
00066 
00067 #endif
00068