LEFT | RIGHT |
(no file at all) | |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version. | 7 * of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 23 matching lines...) Expand all Loading... |
34 * \brief Blender util stuff | 34 * \brief Blender util stuff |
35 */ | 35 */ |
36 | 36 |
37 #ifdef __cplusplus | 37 #ifdef __cplusplus |
38 extern "C" { | 38 extern "C" { |
39 #endif | 39 #endif |
40 | 40 |
41 /* these lines are grep'd, watch out for our not-so-awesome regex | 41 /* these lines are grep'd, watch out for our not-so-awesome regex |
42 * and keep comment above the defines. | 42 * and keep comment above the defines. |
43 * Use STRINGIFY() rather than defining with quotes */ | 43 * Use STRINGIFY() rather than defining with quotes */ |
44 #define BLENDER_VERSION 269 | 44 * and keep comment above the defines. |
45 #define BLENDER_SUBVERSION 2 | 45 * Use STRINGIFY() rather than defining with quotes */ |
46 /* 262 was the last editmesh release but it has compatibility code for bmesh dat
a */ | 46 #define BLENDER_VERSION»» » 259 |
47 #define BLENDER_MINVERSION 262 | 47 #define BLENDER_SUBVERSION» » 2 |
48 #define BLENDER_MINSUBVERSION 0 | |
49 | 48 |
50 /* used by packaging tools */ | 49 #define BLENDER_MINVERSION» » 250 |
51 /* can be left blank, otherwise a,b,c... etc with no quotes */ | 50 #define BLENDER_MINSUBVERSION» 0 |
52 #define BLENDER_VERSION_CHAR··· | |
53 /* alpha/beta/rc/release, docs use this */ | |
54 #define BLENDER_VERSION_CYCLE alpha | |
55 | |
56 extern char versionstr[]; /* from blender.c */ | |
57 | |
58 struct ListBase; | |
59 struct MemFile; | |
60 struct bContext; | |
61 struct ReportList; | |
62 struct Scene; | |
63 struct Main; | |
64 struct ID; | |
65 | |
66 int BKE_read_file(struct bContext *C, const char *filepath, struct ReportList *r
eports); | |
67 | |
68 #define BKE_READ_FILE_FAIL 0 /* no load */ | |
69 #define BKE_READ_FILE_OK 1 /* OK */ | |
70 #define BKE_READ_FILE_OK_USERPREFS 2 /* OK, and with new user settings */ | |
71 | |
72 int BKE_read_file_from_memory(struct bContext *C, const void *filebuf, | |
73 » int filelength, struct ReportList *reports, int update_defaults); | |
74 int BKE_read_file_from_memfile(struct bContext *C, struct MemFile *memfile, | |
75 » struct ReportList *reports); | |
76 | |
77 int BKE_read_file_userdef(const char *filepath, struct ReportList *reports); | |
78 int BKE_write_file_userdef(const char *filepath, struct ReportList *reports); | |
79 | |
80 void free_blender(void); | |
81 void initglobals(void); | |
82 | |
83 /* load new userdef from file, exit blender */ | |
84 void BKE_userdef_free(void); | |
85 /* handle changes in userdef */ | |
86 void BKE_userdef_state(void); | |
87 »······· | |
88 /* set this callback when a UI is running */ | |
89 void set_blender_test_break_cb(void (*func)(void) ); | |
90 int blender_test_break(void); | |
91 | |
92 #define BKE_UNDO_STR_MAX 64 | |
93 | |
94 /* global undo */ | |
95 extern void BKE_write_undo(struct bContext *C, const char *name); | |
96 extern void BKE_undo_step(struct bContext *C, int step); | |
97 extern void BKE_undo_name(struct bContext *C, const char *name); | |
98 extern int BKE_undo_valid(const char *name); | |
99 extern void BKE_reset_undo(void); | |
100 extern void BKE_undo_number(struct bContext *C, int nr); | |
101 extern const char *BKE_undo_get_name(int nr, int *active); | |
102 extern int BKE_undo_save_file(const char *filename); | |
103 extern struct Main *BKE_undo_get_main(struct Scene **scene); | |
104 | |
105 /* copybuffer */ | |
106 void BKE_copybuffer_begin(void); | |
107 void BKE_copybuffer_tag_ID(struct ID *id); | |
108 int BKE_copybuffer_save(const char *filename, struct ReportList *reports); | |
109 int BKE_copybuffer_paste(struct bContext *C, const char *libname, struct ReportL
ist *reports); | |
110 | |
111 #ifdef __cplusplus | |
112 } | |
113 #endif | |
114 | |
115 #endif | |
116 | |
LEFT | RIGHT |