Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillian Padovani Germano <wpgermano@gmail.com>2004-06-24 13:43:13 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2004-06-24 13:43:13 +0400
commit61efb63b0c7e4bdb62d2d4007205db34ed627623 (patch)
treea1ba4ec29dbd028b9bd930c81d67284affcab3b9 /source/blender/python/api2_2x/gen_utils.h
parent5b57d007a4f123a23f704a8d4aff431588e439b7 (diff)
BPython:
- Added function Blender.Save(filename) to save .blend files. - Added scriptlink-related methods (get, clear, add) to Scene and Materials. Will still add method remove and add these methods to World, Object, Camera and Lamp. - Updates and small fixes in docs.
Diffstat (limited to 'source/blender/python/api2_2x/gen_utils.h')
-rw-r--r--source/blender/python/api2_2x/gen_utils.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/source/blender/python/api2_2x/gen_utils.h b/source/blender/python/api2_2x/gen_utils.h
index efeb0a43370..cb17d4bb05e 100644
--- a/source/blender/python/api2_2x/gen_utils.h
+++ b/source/blender/python/api2_2x/gen_utils.h
@@ -17,7 +17,7 @@
*
* 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.
+ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
* All rights reserved.
@@ -60,7 +60,7 @@ PyObject *PythonIncRef (PyObject *object);
char * event_to_name (short event);
float EXPP_ClampFloat (float value, float min, float max);
-int EXPP_ClampInt (int value, int min, int max);
+int EXPP_ClampInt (int value, int min, int max);
PyObject *EXPP_incr_ret (PyObject *object);
PyObject *EXPP_ReturnPyObjError (PyObject * type, char * error_msg);
@@ -71,16 +71,21 @@ PyObject *EXPP_tuple_repr(PyObject *self, int size);
/* mapping utilities - see Texture.c for an example of how to use these */
typedef struct {
- const char *sval;
- int ival;
+ const char *sval;
+ int ival;
} EXPP_map_pair;
/* maps must end with a pair that has NULL as sval */
int EXPP_map_getIntVal (const EXPP_map_pair *map,
- const char *sval, int *ival);
+ const char *sval, int *ival);
int EXPP_map_getShortVal (const EXPP_map_pair *map,
- const char *sval, short *ival);
+ const char *sval, short *ival);
int EXPP_map_getStrVal (const EXPP_map_pair *map,
- int ival, const char **sval);
+ int ival, const char **sval);
+
+/* scriplinks-related: */
+PyObject *EXPP_getScriptLinks (ScriptLink *slink, PyObject *args, int is_scene);
+int EXPP_clearScriptLinks (ScriptLink *slink);
+int EXPP_addScriptLink (ScriptLink *slink, PyObject *args, int is_scene);
#endif /* EXPP_gen_utils_h */