dpx saving would fail if there was no float buffer, which is a problem
[plumiferos.git] / source / blender / python / BPY_extern.h
blob53e332b6fef3b61a08520602a37c91f8e184424e
1 /*
2 * $Id: BPY_extern.h 7692 2006-06-12 00:10:00Z theeth $
4 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version. The Blender
10 * Foundation also sells licenses for use in proprietary software under
11 * the Blender License. See http://www.blender.org/BL/ for information
12 * about this.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software Foundation,
21 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
24 * All rights reserved.
26 * The Original Code was in: source/blender/bpython/include/BPY_extern.h
28 * Contributor(s): Michel Selten, Willian P. Germano, Chris Keith
30 * ***** END GPL/BL DUAL LICENSE BLOCK *****
33 #ifndef BPY_EXTERN_H
34 #define BPY_EXTERN_H
36 extern char bprogname[]; /* holds a copy of argv[0], from creator.c */
38 struct Text; /* defined in DNA_text_types.h */
39 struct ID; /* DNA_ID.h */
40 struct Object; /* DNA_object_types.h */
41 struct IpoDriver; /* DNA_curve_types.h */
42 struct ScriptLink; /* DNA_scriptlink_types.h */
43 struct ListBase; /* DNA_listBase.h */
44 struct SpaceText; /* DNA_space_types.h */
45 struct SpaceScript; /* DNA_space_types.h */
46 struct Script; /* BPI_script.h */
47 struct ScrArea; /* DNA_screen_types.h */
48 struct bScreen; /* DNA_screen_types.h */
49 struct bPythonConstraint; /* DNA_constraint_types.h */
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
54 void BPY_pyconstraint_eval(struct bPythonConstraint *con, float obmat[][4], short ownertype, void *ownerdata, float targetmat[][4]);
55 void BPY_pyconstraint_settings(void *arg1, void *arg2);
56 int BPY_pyconstraint_targets(struct bPythonConstraint *con, float targetmat[][4]);
57 int BPY_is_pyconstraint(struct Text *text);
59 void BPY_start_python( int argc, char **argv );
60 void BPY_end_python( void );
61 void BPY_post_start_python( void );
62 void init_syspath( int first_time );
63 void syspath_append( char *dir );
65 int BPY_Err_getLinenumber( void );
66 const char *BPY_Err_getFilename( void );
68 int BPY_txt_do_python_Text( struct Text *text );
69 int BPY_menu_do_python( short menutype, int event );
70 void BPY_run_python_script( char *filename );
71 void BPY_free_compiled_text( struct Text *text );
73 void BPY_clear_bad_scriptlinks( struct Text *byebye );
74 int BPY_has_onload_script( void );
75 void BPY_do_all_scripts( short event );
76 int BPY_check_all_scriptlinks( struct Text *text );
77 void BPY_do_pyscript( struct ID *id, short event );
78 void BPY_free_scriptlink( struct ScriptLink *slink );
79 void BPY_copy_scriptlink( struct ScriptLink *scriptlink );
81 int BPY_is_spacehandler(struct Text *text, char spacetype);
82 int BPY_del_spacehandler(struct Text *text, struct ScrArea *sa);
83 int BPY_add_spacehandler(struct Text *txt, struct ScrArea *sa,char spacetype);
84 int BPY_has_spacehandler(struct Text *text, struct ScrArea *sa);
85 void BPY_screen_free_spacehandlers(struct bScreen *sc);
86 int BPY_do_spacehandlers(struct ScrArea *sa, unsigned short event,
87 unsigned short space_event);
89 void BPY_pydriver_update(void);
90 float BPY_pydriver_eval(struct IpoDriver *driver);
91 struct Object **BPY_pydriver_get_objects(struct IpoDriver *driver);
93 int BPY_button_eval(char *expr, double *value);
95 /* format importer hook */
96 int BPY_call_importloader( char *name );
98 void BPY_spacescript_do_pywin_draw( struct SpaceScript *sc );
99 void BPY_spacescript_do_pywin_event( struct SpaceScript *sc,
100 unsigned short event, short val, char ascii );
101 void BPY_clear_script( struct Script *script );
102 void BPY_free_finished_script( struct Script *script );
104 /* void BPY_Err_Handle(struct Text *text); */
105 /* void BPY_clear_bad_scriptlink(struct ID *id, struct Text *byebye); */
106 /* void BPY_clear_bad_scriptlist(struct ListBase *, struct Text *byebye); */
107 /* int BPY_spacetext_is_pywin(struct SpaceText *st); */
109 #ifdef __cplusplus
110 } /* extern "C" */
111 #endif
113 #endif /* BPY_EXTERN_H */