LEFT | RIGHT |
1 /* | 1 /* |
2 * $Id$ | |
3 * | |
4 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
5 * | 3 * |
6 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
8 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
9 * of the License, or (at your option) any later version. | 7 * of the License, or (at your option) any later version. |
10 * | 8 * |
11 * 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, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
(...skipping 15 matching lines...) Expand all Loading... |
29 */ | 27 */ |
30 | 28 |
31 /** \file blenderplayer/bad_level_call_stubs/stubs.c | 29 /** \file blenderplayer/bad_level_call_stubs/stubs.c |
32 * \ingroup blc | 30 * \ingroup blc |
33 */ | 31 */ |
34 | 32 |
35 | 33 |
36 #ifdef WITH_GAMEENGINE | 34 #ifdef WITH_GAMEENGINE |
37 #include <stdlib.h> | 35 #include <stdlib.h> |
38 #include "DNA_listBase.h" | 36 #include "DNA_listBase.h" |
| 37 #include "BLI_utildefines.h" |
39 #include "RNA_types.h" | 38 #include "RNA_types.h" |
| 39 |
| 40 #define ASSERT_STUBS 0 |
| 41 #if ASSERT_STUBS |
| 42 #include <assert.h> |
| 43 #define STUB_ASSERT(x) (assert(x)) |
| 44 #else |
| 45 #define STUB_ASSERT(x) |
| 46 #endif |
| 47 |
40 | 48 |
41 struct ARegion; | 49 struct ARegion; |
42 struct ARegionType; | 50 struct ARegionType; |
| 51 struct BMEditMesh; |
43 struct Base; | 52 struct Base; |
44 struct Brush; | 53 struct Brush; |
45 struct bNodeTree; | |
46 struct CSG_FaceIteratorDescriptor; | 54 struct CSG_FaceIteratorDescriptor; |
47 struct CSG_VertexIteratorDescriptor; | 55 struct CSG_VertexIteratorDescriptor; |
| 56 struct ChannelDriver; |
48 struct ColorBand; | 57 struct ColorBand; |
| 58 struct Context; |
| 59 struct Curve; |
49 struct CurveMapping; | 60 struct CurveMapping; |
50 struct Curve; | 61 struct DerivedMesh; |
51 struct EditBone; | 62 struct EditBone; |
52 struct EditFace; | 63 struct EnvMap; |
53 struct EditMesh; | 64 struct FCurve; |
| 65 struct Heap; |
| 66 struct HeapNode; |
54 struct ID; | 67 struct ID; |
55 struct FCurve; | 68 #ifdef WITH_FREESTYLE |
| 69 struct FreestyleConfig; |
| 70 struct FreestyleLineSet; |
| 71 #endif |
56 struct ImBuf; | 72 struct ImBuf; |
57 struct Image; | 73 struct Image; |
58 struct ImageUser; | 74 struct ImageUser; |
| 75 struct KeyingSet; |
59 struct KeyingSetInfo; | 76 struct KeyingSetInfo; |
60 struct KeyingSet; | 77 struct MCol; |
61 struct LOD_Decimation_Info; | |
62 struct MTex; | 78 struct MTex; |
63 struct Main; | 79 struct Main; |
| 80 struct Mask; |
64 struct Material; | 81 struct Material; |
65 struct MCol; | |
66 struct MenuType; | 82 struct MenuType; |
67 struct Mesh; | 83 struct Mesh; |
| 84 struct MetaBall; |
68 struct ModifierData; | 85 struct ModifierData; |
| 86 struct MovieClip; |
69 struct MultiresModifierData; | 87 struct MultiresModifierData; |
| 88 struct HookModifierData; |
70 struct NodeBlurData; | 89 struct NodeBlurData; |
| 90 struct Nurb; |
71 struct Object; | 91 struct Object; |
72 struct PBVHNode; | 92 struct PBVHNode; |
| 93 struct PyObject; |
73 struct Render; | 94 struct Render; |
74 struct RenderEngine; | 95 struct RenderEngine; |
| 96 struct RenderEngineType; |
75 struct RenderLayer; | 97 struct RenderLayer; |
76 struct RenderResult; | 98 struct RenderResult; |
| 99 struct Scene; |
| 100 struct Scene; |
| 101 #ifdef WITH_FREESTYLE |
| 102 struct SceneRenderLayer; |
| 103 #endif |
77 struct ScrArea; | 104 struct ScrArea; |
78 struct SculptSession; | 105 struct SculptSession; |
79 struct ShadeInput; | 106 struct ShadeInput; |
80 struct ShadeResult; | 107 struct ShadeResult; |
| 108 struct SpaceClip; |
81 struct SpaceImage; | 109 struct SpaceImage; |
| 110 struct SpaceNode; |
82 struct Tex; | 111 struct Tex; |
83 struct TexResult; | 112 struct TexResult; |
84 struct Text; | 113 struct Text; |
| 114 struct ToolSettings; |
| 115 struct View2D; |
| 116 struct View3D; |
85 struct bAction; | 117 struct bAction; |
86 struct bArmature; | 118 struct bArmature; |
87 struct bConstraint; | 119 struct bConstraint; |
| 120 struct bConstraintOb; |
| 121 struct bConstraintTarget; |
| 122 struct bContextDataResult; |
88 struct bNode; | 123 struct bNode; |
| 124 struct bNodeType; |
| 125 struct bNodeSocket; |
| 126 struct bNodeSocketType; |
| 127 struct bNodeTree; |
| 128 struct bNodeTreeType; |
89 struct bPoseChannel; | 129 struct bPoseChannel; |
| 130 struct bPythonConstraint; |
| 131 struct bTheme; |
90 struct uiLayout; | 132 struct uiLayout; |
91 struct wmEvent; | 133 struct wmEvent; |
92 struct wmKeyConfig; | 134 struct wmKeyConfig; |
93 struct wmKeyMap; | 135 struct wmKeyMap; |
94 struct wmOperator; | 136 struct wmOperator; |
| 137 struct wmOperatorType; |
95 struct wmWindow; | 138 struct wmWindow; |
96 struct wmWindowManager; | 139 struct wmWindowManager; |
97 struct View3D; | |
98 struct ToolSettings; | |
99 struct bContextDataResult; | |
100 struct bConstraintTarget; | |
101 struct bPythonConstraint; | |
102 struct bConstraintOb; | |
103 struct Context; | |
104 struct ChannelDriver; | |
105 | |
106 | 140 |
107 /*new render funcs */ | 141 /*new render funcs */ |
108 float *RE_RenderLayerGetPass(struct RenderLayer *rl, int passtype) {return (floa
t *) NULL;} | 142 void EDBM_selectmode_set(struct BMEditMesh *em) {STUB_ASSERT(0);} |
109 float RE_filter_value(int type, float x) {return 0.0f;} | 143 void EDBM_mesh_load(struct Object *ob) {STUB_ASSERT(0);} |
110 struct RenderLayer *RE_GetRenderLayer(struct RenderResult *rr, const char *name)
{return (struct RenderLayer *)NULL;} | 144 void EDBM_mesh_make(struct ToolSettings *ts, struct Object *ob) {STUB_ASSERT(0);
} |
| 145 void EDBM_mesh_normals_update(struct BMEditMesh *em) {STUB_ASSERT(0);} |
| 146 void *g_system; |
| 147 |
| 148 float *RE_RenderLayerGetPass(struct RenderLayer *rl, int passtype) {STUB_ASSERT(
0); return (float *) NULL;} |
| 149 float RE_filter_value(int type, float x) {STUB_ASSERT(0); return 0.0f;} |
| 150 struct RenderLayer *RE_GetRenderLayer(struct RenderResult *rr, const char *name)
{STUB_ASSERT(0); return (struct RenderLayer *)NULL;} |
111 | 151 |
112 /* zbuf.c stub */ | 152 /* zbuf.c stub */ |
113 void antialias_tagbuf(int xsize, int ysize, char *rectmove) {} | 153 void antialias_tagbuf(int xsize, int ysize, char *rectmove) {STUB_ASSERT(0);} |
114 void RE_zbuf_accumulate_vecblur(struct NodeBlurData *nbd, int xsize, int ysize,
float *newrect, float *imgrect, float *vecbufrect, float *zbufrect) {} | 154 void RE_zbuf_accumulate_vecblur(struct NodeBlurData *nbd, int xsize, int ysize,
float *newrect, float *imgrect, float *vecbufrect, float *zbufrect) {STUB_ASSERT
(0);} |
115 | 155 |
116 /* imagetexture.c stub */ | 156 /* imagetexture.c stub */ |
117 void ibuf_sample(struct ImBuf *ibuf, float fx, float fy, float dx, float dy, flo
at *result) {} | 157 void ibuf_sample(struct ImBuf *ibuf, float fx, float fy, float dx, float dy, flo
at *result) {STUB_ASSERT(0);} |
118 | 158 |
119 /* texture.c */ | 159 /* texture.c */ |
120 int multitex_thread(struct Tex *tex, float *texvec, float *dxt, float *dyt, int
osatex, struct TexResult *texres, short thread, short which_output) {return 0;} | 160 int multitex_thread(struct Tex *tex, float *texvec, float *dxt, float *dyt, int
osatex, struct TexResult *texres, short thread, short which_output) {STUB_ASSERT
(0); return 0;} |
121 int multitex_ext(struct Tex *tex, float *texvec, float *dxt, float *dyt, int osa
tex, struct TexResult *texres){return 0;} | 161 int multitex_ext(struct Tex *tex, float *texvec, float *dxt, float *dyt, int osa
tex, struct TexResult *texres) {STUB_ASSERT(0); return 0;} |
122 int multitex_ext_safe(struct Tex *tex, float *texvec, struct TexResult *texres){
return 0;} | 162 int multitex_ext_safe(struct Tex *tex, float *texvec, struct TexResult *texres)
{STUB_ASSERT(0); return 0;} |
123 int multitex_nodes(struct Tex *tex, float *texvec, float *dxt, float *dyt, int o
satex, struct TexResult *texres, short thread, short which_output, struct ShadeI
nput *shi, struct MTex *mtex) {return 0;} | 163 int multitex_nodes(struct Tex *tex, float *texvec, float *dxt, float *dyt, int o
satex, struct TexResult *texres, short thread, short which_output, struct ShadeI
nput *shi, struct MTex *mtex) {STUB_ASSERT(0); return 0;} |
| 164 |
| 165 struct Material *RE_init_sample_material(struct Material *orig_mat, struct Scene
*scene) {STUB_ASSERT(0); return (struct Material *)NULL;} |
| 166 void RE_free_sample_material(struct Material *mat) {STUB_ASSERT(0);} |
| 167 void RE_sample_material_color(struct Material *mat, float color[3], float *alpha
, const float volume_co[3], const float surface_co[3], |
| 168 int face_index, short hit_quad, struct DerivedMesh
*orcoDm, struct Object *ob) {STUB_ASSERT(0);} |
| 169 |
| 170 /* skin modifier*/ |
| 171 void modifier_skin_customdata_ensure(struct Object *ob) {STUB_ASSERT(0);} |
124 | 172 |
125 /* nodes */ | 173 /* nodes */ |
126 struct RenderResult *RE_GetResult(struct Render *re){return (struct RenderResult
*) NULL;} | 174 struct RenderResult *RE_GetResult(struct Render *re) {STUB_ASSERT(0); return (st
ruct RenderResult *) NULL;} |
127 struct Render *RE_GetRender(const char *name){return (struct Render *) NULL;} | 175 struct Render *RE_GetRender(const char *name) {STUB_ASSERT(0); return (struct Re
nder *) NULL;} |
128 | 176 |
129 /* blenkernel */ | 177 /* blenkernel */ |
130 char btempdir[] = ""; | 178 void RE_FreeRenderResult(struct RenderResult *res) {STUB_ASSERT(0);} |
131 void RE_FreeRenderResult(struct RenderResult *res){} | 179 void RE_FreeAllRenderResults(void) {STUB_ASSERT(0);} |
132 struct RenderResult *RE_MultilayerConvert(void *exrhandle, int rectx, int recty)
{return (struct RenderResult *) NULL;} | 180 struct RenderResult *RE_MultilayerConvert(void *exrhandle, int rectx, int recty)
{STUB_ASSERT(0); return (struct RenderResult *) NULL;} |
133 void RE_GetResultImage(struct Render *re, struct RenderResult *rr){} | 181 void RE_GetResultImage(struct Render *re, struct RenderResult *rr) {STUB_ASSERT(
0);} |
134 int RE_RenderInProgress(struct Render *re){return 0;} | 182 int RE_RenderInProgress(struct Render *re) {STUB_ASSERT(0); return 0;} |
135 struct Scene *RE_GetScene(struct Render *re){return (struct Scene *) NULL;} | 183 struct Scene *RE_GetScene(struct Render *re) {STUB_ASSERT(0); return (struct Sce
ne *) NULL;} |
136 void RE_Database_Free(struct Render *re){} | 184 void RE_Database_Free(struct Render *re) {STUB_ASSERT(0);} |
137 void RE_FreeRender(struct Render *re){} | 185 void RE_FreeRender(struct Render *re) {STUB_ASSERT(0);} |
138 void RE_shade_external(struct Render *re, struct ShadeInput *shi, struct ShadeRe
sult *shr){} | 186 void RE_DataBase_GetView(struct Render *re, float mat[4][4]) {STUB_ASSERT(0);} |
139 void RE_DataBase_GetView(struct Render *re, float mat[][4]){} | 187 int externtex(struct MTex *mtex, float *vec, float *tin, float *tr, float *tg, f
loat *tb, float *ta) {STUB_ASSERT(0); return 0;} |
140 int externtex(struct MTex *mtex, float *vec, float *tin, float *tr, float *tg, f
loat *tb, float *ta){return 0;} | 188 float texture_value_blend(float tex, float out, float fact, float facg, int blen
dtype, int flip) {STUB_ASSERT(0); return 0.0f;} |
141 float texture_value_blend(float tex, float out, float fact, float facg, int blen
dtype, int flip){return 0.0f;} | 189 void texture_rgb_blend(float *in, float *tex, float *out, float fact, float facg
, int blendtype) {STUB_ASSERT(0);} |
142 void texture_rgb_blend(float *in, float *tex, float *out, float fact, float facg
, int blendtype){} | |
143 char stipple_quarttone[1]; //GLubyte stipple_quarttone[128] | 190 char stipple_quarttone[1]; //GLubyte stipple_quarttone[128] |
144 double elbeemEstimateMemreq(int res, float sx, float sy, float sz, int refine, c
har *retstr) {return 0.0f;} | 191 double elbeemEstimateMemreq(int res, float sx, float sy, float sz, int refine, c
har *retstr) {STUB_ASSERT(0); return 0.0f;} |
145 struct Render *RE_NewRender(const char *name){return (struct Render*) NULL;} | 192 struct Render *RE_NewRender(const char *name) {STUB_ASSERT(0); return (struct Re
nder *) NULL;} |
146 void RE_SwapResult(struct Render *re, struct RenderResult **rr){} | 193 void RE_SwapResult(struct Render *re, struct RenderResult **rr) {STUB_ASSERT(0);
} |
147 void RE_BlenderFrame(struct Render *re, struct Scene *scene, int frame){} | 194 void RE_BlenderFrame(struct Render *re, struct Scene *scene, int frame) {STUB_AS
SERT(0);} |
| 195 int RE_WriteEnvmapResult(struct ReportList *reports, struct Scene *scene, struct
EnvMap *env, const char *relpath, const char imtype, float layout[12]) {STUB_AS
SERT(0); return 0; } |
148 | 196 |
149 /* rna */ | 197 /* rna */ |
150 float *give_cursor(struct Scene *scene, struct View3D *v3d){return (float *) NUL
L;} | 198 float *ED_view3d_cursor3d_get(struct Scene *scene, struct View3D *v3d) {STUB_ASS
ERT(0); return (float *) NULL;} |
151 void WM_menutype_free(void){} | 199 void WM_menutype_free(void) {STUB_ASSERT(0);} |
152 void WM_menutype_freelink(struct MenuType* mt){} | 200 void WM_menutype_freelink(struct MenuType *mt) {STUB_ASSERT(0);} |
153 int WM_menutype_add(struct MenuType *mt) {return 0;} | 201 int WM_menutype_add(struct MenuType *mt) {STUB_ASSERT(0); return 0;} |
154 int WM_operator_props_dialog_popup (struct bContext *C, struct wmOperator *op, i
nt width, int height){return 0;} | 202 int WM_operator_props_dialog_popup(struct bContext *C, struct wmOperator *op, in
t width, int height) {STUB_ASSERT(0); return 0;} |
155 int WM_operator_confirm(struct bContext *C, struct wmOperator *op, struct wmEven
t *event){return 0;} | 203 int WM_operator_confirm(struct bContext *C, struct wmOperator *op, const struct
wmEvent *event) {STUB_ASSERT(0); return 0;} |
156 struct MenuType *WM_menutype_find(const char *idname, int quiet){return (struct
MenuType *) NULL;} | 204 struct MenuType *WM_menutype_find(const char *idname, int quiet) {STUB_ASSERT(0)
; return (struct MenuType *) NULL;} |
157 void WM_operator_stack_clear(struct bContext *C) {} | 205 void WM_operator_stack_clear(struct bContext *C) {STUB_ASSERT(0);} |
158 | 206 void WM_operator_handlers_clear(struct bContext *C, struct wmOperatorType *ot) {
STUB_ASSERT(0);} |
159 void WM_autosave_init(struct bContext *C){} | 207 |
160 void WM_jobs_stop_all(struct wmWindowManager *wm){} | 208 void WM_autosave_init(struct bContext *C) {STUB_ASSERT(0);} |
161 | 209 void WM_jobs_kill_all_except(struct wmWindowManager *wm) {STUB_ASSERT(0);} |
162 char *WM_clipboard_text_get(int selection){return (char*)0;} | 210 |
163 void WM_clipboard_text_set(char *buf, int selection){} | 211 char *WM_clipboard_text_get(int selection) {STUB_ASSERT(0); return (char *)0;} |
164 | 212 void WM_clipboard_text_set(char *buf, int selection) {STUB_ASSERT(0);} |
165 struct wmKeyMapItem *WM_keymap_item_find_id(struct wmKeyMap *keymap, int id){ret
urn (struct wmKeyMapItem *) NULL;} | 213 |
166 int WM_enum_search_invoke(struct bContext *C, struct wmOperator *op, struct wmEv
ent *event){return 0;} | 214 void WM_cursor_set(struct wmWindow *win, int curor) {STUB_ASSERT(0);} |
167 void WM_event_add_notifier(const struct bContext *C, unsigned int type, void *re
ference){} | 215 void WM_cursor_modal_set(struct wmWindow *win, int curor) {STUB_ASSERT(0);} |
168 void WM_main_add_notifier(unsigned int type, void *reference){} | 216 void WM_cursor_modal_restore(struct wmWindow *win) {STUB_ASSERT(0);} |
169 void ED_armature_bone_rename(struct bArmature *arm, char *oldnamep, char *newnam
ep){} | 217 void WM_cursor_time(struct wmWindow *win, int nr) {STUB_ASSERT(0);} |
170 struct wmEventHandler *WM_event_add_modal_handler(struct bContext *C, struct wmO
perator *op){return (struct wmEventHandler *)NULL;} | 218 void WM_cursor_warp(struct wmWindow *win, int x, int y) {STUB_ASSERT(0);} |
171 struct wmTimer *WM_event_add_timer(struct wmWindowManager *wm, struct wmWindow *
win, int event_type, double timestep){return (struct wmTimer *)NULL;} | 219 |
172 void» » WM_event_remove_timer(struct wmWindowManager *wm, struct wmWindo
w *win, struct wmTimer *timer){} | 220 void WM_uilisttype_init(void) {STUB_ASSERT(0);} |
173 void ED_armature_edit_bone_remove(struct bArmature *arm, struct EditBone *exBone
){} | 221 struct uiListType *WM_uilisttype_find(const char *idname, int quiet) {STUB_ASSE
RT(0); return (struct uiListType *)NULL;} |
174 void object_test_constraints (struct Object *owner){} | 222 int WM_uilisttype_add(struct uiListType *ult) {STUB_ASSERT(0); r
eturn 0;} |
175 void ED_object_parent(struct Object *ob, struct Object *par, int type, const cha
r *substr){} | 223 void WM_uilisttype_freelink(struct uiListType *ult) {STUB_ASSERT(
0);} |
176 void ED_object_constraint_set_active(struct Object *ob, struct bConstraint *con)
{} | 224 void WM_uilisttype_free(void) {STUB_ASSERT(0);} |
177 void ED_node_composit_default(struct Scene *sce){} | 225 |
178 void *ED_region_draw_cb_activate(struct ARegionType *art, void(*draw)(const stru
ct bContext *, struct ARegion *, void *), void *custumdata, int type){return 0;}
/* XXX this one looks weird */ | 226 struct wmKeyMapItem *WM_keymap_item_find_id(struct wmKeyMap *keymap, int id) {ST
UB_ASSERT(0); return (struct wmKeyMapItem *) NULL;} |
179 void *ED_region_draw_cb_customdata(void *handle){return 0;} /* XXX This one look
s wrong also */ | 227 int WM_enum_search_invoke(struct bContext *C, struct wmOperator *op, struct wmEv
ent *event) {STUB_ASSERT(0); return 0;} |
180 void ED_region_draw_cb_exit(struct ARegionType *art, void *handle){} | |
181 void» ED_area_headerprint(struct ScrArea *sa, char *str){} | |
182 | |
183 struct EditBone *ED_armature_bone_get_mirrored(struct ListBase *edbo, struct Edi
tBone *ebo){return (struct EditBone *) NULL;} | |
184 struct EditBone *ED_armature_edit_bone_add(struct bArmature *arm, char *name){re
turn (struct EditBone*) NULL;} | |
185 struct ListBase *get_active_constraints (struct Object *ob){return (struct ListB
ase *) NULL;} | |
186 struct ListBase *get_constraint_lb(struct Object *ob, struct bConstraint *con, s
truct bPoseChannel **pchan_r){return (struct ListBase *) NULL;} | |
187 int ED_pose_channel_in_IK_chain(struct Object *ob, struct bPoseChannel *pchan){r
eturn 0;} | |
188 | |
189 int ED_space_image_show_uvedit(struct SpaceImage *sima, struct Object *obedit){r
eturn 0;} | |
190 int ED_space_image_show_render(struct SpaceImage *sima){return 0;} | |
191 int ED_space_image_show_paint(struct SpaceImage *sima){return 0;} | |
192 void ED_space_image_paint_update(struct wmWindowManager *wm, struct ToolSettings
*settings){} | |
193 void ED_space_image_set(struct bContext *C, struct SpaceImage *sima, struct Scen
e *scene, struct Object *obedit, struct Image *ima){} | |
194 struct ImBuf *ED_space_image_buffer(struct SpaceImage *sima){return (struct ImBu
f *) NULL;} | |
195 void» ED_screen_set_scene(struct bContext *C, struct Scene *scene){} | |
196 | |
197 struct PTCacheEdit *PE_get_current(struct Scene *scene, struct Object *ob){retur
n (struct PTCacheEdit *) NULL;} | |
198 void PE_current_changed(struct Scene *scene, struct Object *ob){} | |
199 | |
200 /* rna keymap */ | |
201 struct wmKeyMap *WM_keymap_active(struct wmWindowManager *wm, struct wmKeyMap *k
eymap){return (struct wmKeyMap *) NULL;} | |
202 struct wmKeyMap *WM_keymap_find(struct wmKeyConfig *keyconf, char *idname, int s
paceid, int regionid){return (struct wmKeyMap *) NULL;} | |
203 struct wmKeyMap *WM_keymap_add_item(struct wmKeyMap *keymap, char *idname, int t
ype, int val, int modifier, int keymodifier){return (struct wmKeyMap *) NULL;} | |
204 struct wmKeyMap *WM_keymap_copy_to_user(struct wmKeyMap *kemap){return (struct w
mKeyMap *) NULL;}· | |
205 struct wmKeyMap *WM_keymap_list_find(struct ListBase *lb, char *idname, int spac
eid, int regionid){return (struct wmKeyMap *) NULL;} | |
206 struct wmKeyConfig *WM_keyconfig_new(struct wmWindowManager *wm, char *idname){r
eturn (struct wmKeyConfig *) NULL;} | |
207 struct wmKeyConfig *WM_keyconfig_new_user(struct wmWindowManager *wm, char *idna
me){return (struct wmKeyConfig *) NULL;} | |
208 void WM_keyconfig_remove(struct wmWindowManager *wm, char *idname){} | |
209 void WM_keymap_remove_item(struct wmKeyMap *keymap, struct wmKeyMapItem *kmi){} | |
210 void WM_keymap_restore_to_default(struct wmKeyMap *keymap){} | |
211 void WM_keymap_restore_item_to_default(struct bContext *C, struct wmKeyMap *keym
ap, struct wmKeyMapItem *kmi){} | |
212 void WM_keymap_properties_reset(struct wmKeyMapItem *kmi){} | |
213 int WM_keymap_user_init(struct wmWindowManager *wm, struct wmKeyMap *keymap) {re
turn 0;} | |
214 int WM_keymap_item_compare(struct wmKeyMapItem *k1, struct wmKeyMapItem *k2){ret
urn 0;} | |
215 | |
216 | |
217 /* rna editors */ | |
218 struct FCurve *verify_fcurve (struct bAction *act, const char group[], const cha
r rna_path[], const int array_index, short add){return (struct FCurve *) NULL;} | |
219 int insert_vert_fcurve(struct FCurve *fcu, float x, float y, short flag){return
0;} | |
220 void delete_fcurve_key(struct FCurve *fcu, int index, short do_recalc){} | |
221 struct KeyingSetInfo *ANIM_keyingset_info_find_named (const char name[]){return
(struct KeyingSetInfo *) NULL;} | |
222 struct KeyingSet *ANIM_scene_get_active_keyingset (struct Scene *scene){return (
struct KeyingSet *) NULL;} | |
223 int ANIM_scene_get_keyingset_index(struct Scene *scene, struct KeyingSet *ks){re
turn 0;} | |
224 struct ListBase builtin_keyingsets; | |
225 void ANIM_keyingset_info_register (struct KeyingSetInfo *ksi){} | |
226 void ANIM_keyingset_info_unregister (const struct bContext *C, struct KeyingSetI
nfo *ksi){} | |
227 short ANIM_add_driver(struct ID *id, const char rna_path[], int array_index, sho
rt flag, int type){return 0;} | |
228 short ANIM_remove_driver (struct ID *id, const char rna_path[], int array_index,
short flag){return 0;} | 228 short ANIM_remove_driver (struct ID *id, const char rna_path[], int array_index,
short flag){return 0;} |
229 void ED_space_image_release_buffer(struct SpaceImage *sima, void *lock){} | 229 void ED_space_image_release_buffer(struct SpaceImage *sima, void *lock){} |
230 struct ImBuf *ED_space_image_acquire_buffer(struct SpaceImage *sima, void **lock
_r){return (struct ImBuf *) NULL;} | 230 struct ImBuf *ED_space_image_acquire_buffer(struct SpaceImage *sima, void **lock
_r){return (struct ImBuf *) NULL;} |
231 void ED_space_image_zoom(struct SpaceImage *sima, struct ARegion *ar, float *zoo
mx, float *zoomy) {} | |
232 char *ED_info_stats_string(struct Scene *scene){return (char *) NULL;} | 231 char *ED_info_stats_string(struct Scene *scene){return (char *) NULL;} |
233 void ED_area_tag_redraw(struct ScrArea *sa){} | 232 void ED_area_tag_redraw(struct ScrArea *sa){} |
234 void ED_area_tag_refresh(struct ScrArea *sa){} | 233 void ED_area_tag_refresh(struct ScrArea *sa){} |
235 void ED_area_newspace(struct bContext *C, struct ScrArea *sa, int type){}· | |
236 void ED_region_tag_redraw(struct ARegion *ar){} | |
237 void WM_event_add_fileselect(struct bContext *C, struct wmOperator *op){} | |
238 void WM_cursor_wait (int val) {} | |
239 void ED_node_texture_default(struct Tex *tx){} | |
240 void ED_node_changed_update(struct bContext *C, struct bNode *node){} | |
241 void ED_node_generic_update(struct Main *bmain, struct bNodeTree *ntree, struct
bNode *node){} | |
242 void ED_view3d_scene_layers_update(struct Main *bmain, struct Scene *scene){} | |
243 int ED_view3d_scene_layer_set(int lay, const int *values){return 0;} | |
244 void ED_view3d_quadview_update(struct ScrArea *sa, struct ARegion *ar){} | |
245 int text_file_modified(struct Text *text){return 0;} | |
246 void ED_node_shader_default(struct Material *ma){} | |
247 void ED_screen_animation_timer_update(struct bContext *C, int redraws){} | |
248 void ED_base_object_select(struct Base *base, short mode){} | |
249 int ED_object_modifier_remove(struct ReportList *reports, struct Scene *scene, s
truct Object *ob, struct ModifierData *md){return 0;} | |
250 int ED_object_modifier_add(struct ReportList *reports, struct Scene *scene, stru
ct Object *ob, char *name, int type){return 0;} | |
251 void ED_object_enter_editmode(struct bContext *C, int flag){} | |
252 void ED_object_exit_editmode(struct bContext *C, int flag){} | |
253 int uiLayoutGetActive(struct uiLayout *layout){return 0;} | |
254 int uiLayoutGetOperatorContext(struct uiLayout *layout){return 0;} | |
255 int uiLayoutGetAlignment(struct uiLayout *layout){return 0;} | |
256 int uiLayoutGetEnabled(struct uiLayout *layout){return 0;} | |
257 float uiLayoutGetScaleX(struct uiLayout *layout){return 0.0f;} | |
258 float uiLayoutGetScaleY(struct uiLayout *layout){return 0.0f;} | |
259 void uiLayoutSetActive(struct uiLayout *layout, int active){} | |
260 void uiLayoutSetOperatorContext(struct uiLayout *layout, int opcontext){} | |
261 void uiLayoutSetEnabled(struct uiLayout *layout, int enabled){} | |
262 void uiLayoutSetAlignment(struct uiLayout *layout, int alignment){} | |
263 void uiLayoutSetScaleX(struct uiLayout *layout, float scale){} | |
264 void uiLayoutSetScaleY(struct uiLayout *layout, float scale){} | |
265 void ED_base_object_free_and_unlink(struct Scene *scene, struct Base *base){} | |
266 void ED_mesh_calc_normals(struct Mesh *me){} | |
267 void ED_mesh_geometry_add(struct Mesh *mesh, struct ReportList *reports, int ver
ts, int edges, int faces){} | |
268 void ED_mesh_material_add(struct Mesh *me, struct Material *ma){} | |
269 void ED_mesh_transform(struct Mesh *me, float *mat){} | |
270 void ED_mesh_update(struct Mesh *mesh, struct bContext *C){} | |
271 void ED_mesh_vertices_add(struct Mesh *mesh, struct ReportList *reports, int cou
nt){} | |
272 void ED_mesh_edges_add(struct Mesh *mesh, struct ReportList *reports, int count)
{} | |
273 void ED_mesh_faces_add(struct Mesh *mesh, struct ReportList *reports, int count)
{} | |
274 void ED_mesh_material_link(struct Mesh *mesh, struct Material *ma){} | |
275 int ED_mesh_color_add(struct bContext *C, struct Scene *scene, struct Object *ob
, struct Mesh *me){return 0;} | |
276 int ED_mesh_uv_texture_add(struct bContext *C, struct Mesh *me){return 0;} | |
277 void ED_object_constraint_dependency_update(struct Scene *scene, struct Object *
ob){} | |
278 void ED_object_constraint_update(struct Object *ob){} | |
279 struct bDeformGroup *ED_vgroup_add_name(struct Object *ob, char *name){return (s
truct bDeformGroup *) NULL;} | |
280 void ED_vgroup_vert_add(struct Object *ob, struct bDeformGroup *dg, int vertnum,
float weight, int assignmode){} | |
281 void ED_vgroup_vert_remove(struct Object *ob, struct bDeformGroup *dg, int vertn
um){} | |
282 void ED_vgroup_vert_weight(struct Object *ob, struct bDeformGroup *dg, int vertn
um){} | |
283 void ED_vgroup_delete(struct Object *ob, struct bDeformGroup *defgroup){} | |
284 void ED_vgroup_object_is_edit_mode(struct Object *ob){} | |
285 | |
286 void ED_sequencer_update_view(struct bContext *C, int view){} | |
287 float ED_rollBoneToVector(struct EditBone *bone, float new_up_axis[3]){return 0.
0f;} | |
288 void ED_space_image_size(struct SpaceImage *sima, int *width, int *height){} | |
289 | |
290 struct ListBase *ED_curve_editnurbs(struct Curve *cu){return NULL;} | |
291 void free_curve_editNurb (struct Curve *cu){}; | |
292 | |
293 void EM_selectmode_set(struct EditMesh *em){} | |
294 int EM_texFaceCheck(struct EditMesh *em){return 0;} | |
295 struct MTFace *EM_get_active_mtface(struct EditMesh *em, struct EditFace **act_e
fa, struct MCol **mcol, int sloopy){return (struct MTFace *)NULL;} | |
296 void make_editMesh(struct Scene *scene, struct Object *ob){} | |
297 void load_editMesh(struct Scene *scene, struct Object *ob){} | |
298 | |
299 void make_editLatt(struct Object *obedit){} | |
300 void load_editLatt(struct Object *obedit){} | |
301 | |
302 void load_editNurb (struct Object *obedit){} | |
303 void make_editNurb (struct Object *obedit){} | |
304 | |
305 | |
306 void uiItemR(struct uiLayout *layout, struct PointerRNA *ptr, char *propname, in
t flag, char *name, int icon){} | |
307 | |
308 struct PointerRNA uiItemFullO(struct uiLayout *layout, char *idname, char *name,
int icon, struct IDProperty *properties, int context, int flag){struct PointerR
NA a; return a;} | |
309 struct uiLayout *uiLayoutRow(struct uiLayout *layout, int align){return (struct
uiLayout *) NULL;} | |
310 struct uiLayout *uiLayoutColumn(struct uiLayout *layout, int align){return (stru
ct uiLayout *) NULL;} | |
311 struct uiLayout *uiLayoutColumnFlow(struct uiLayout *layout, int number, int ali
gn){return (struct uiLayout *) NULL;} | |
312 struct uiLayout *uiLayoutBox(struct uiLayout *layout){return (struct uiLayout *)
NULL;} | |
313 struct uiLayout *uiLayoutSplit(struct uiLayout *layout, float percentage, int al
ign){return (struct uiLayout *) NULL;} | |
314 int uiLayoutGetRedAlert(struct uiLayout *layout){return 0;} | |
315 void uiLayoutSetRedAlert(struct uiLayout *layout, int redalert){} | |
316 void uiItemsEnumR(struct uiLayout *layout, struct PointerRNA *ptr, char *propnam
e){} | |
317 void uiItemMenuEnumR(struct uiLayout *layout, struct PointerRNA *ptr, char *prop
name, char *name, int icon){} | |
318 void uiItemEnumR_string(struct uiLayout *layout, struct PointerRNA *ptr, char *p
ropname, char *value, char *name, int icon){} | |
319 void uiItemPointerR(struct uiLayout *layout, struct PointerRNA *ptr, char *propn
ame, struct PointerRNA *searchptr, char *searchpropname, char *name, int icon){} | |
320 void uiItemPointerSubR(struct uiLayout *layout, struct PointerRNA *ptr, char *pr
opname, char *searchpropname, char *name, int icon){} | |
321 void uiItemsEnumO(struct uiLayout *layout, char *opname, char *propname){} | |
322 void uiItemEnumO_string(struct uiLayout *layout, char *name, int icon, char *opn
ame, char *propname, char *value_str){} | |
323 void uiItemMenuEnumO(struct uiLayout *layout, char *opname, char *propname, char
*name, int icon){} | |
324 void uiItemBooleanO(struct uiLayout *layout, char *name, int icon, char *opname,
char *propname, int value){} | |
325 void uiItemIntO(struct uiLayout *layout, char *name, int icon, char *opname, cha
r *propname, int value){} | |
326 void uiItemFloatO(struct uiLayout *layout, char *name, int icon, char *opname, c
har *propname, float value){} | |
327 void uiItemStringO(struct uiLayout *layout, char *name, int icon, char *opname,
char *propname, char *value){} | |
328 void uiItemL(struct uiLayout *layout, char *name, int icon){} | |
329 void uiItemM(struct uiLayout *layout, struct bContext *C, char *menuname, char *
name, int icon){} | |
330 void uiItemS(struct uiLayout *layout){} | |
331 void uiItemFullR(struct uiLayout *layout, struct PointerRNA *ptr, struct Propert
yRNA *prop, int index, int value, int flag, char *name, int icon){} | |
332 void uiLayoutSetContextPointer(struct uiLayout *layout, char *name, struct Point
erRNA *ptr){} | |
333 char *uiLayoutIntrospect(struct uiLayout *layout){return (char *)NULL;} | |
334 | |
335 /* rna template */ | |
336 void uiTemplateAnyID(struct uiLayout *layout, struct bContext *C, struct Pointer
RNA *ptr, char *propname, char *text){} | |
337 void uiTemplatePathBuilder(struct uiLayout *layout, struct bContext *C, struct P
ointerRNA *ptr, char *propname, struct PointerRNA *root_ptr, char *text){} | |
338 void uiTemplateHeader(struct uiLayout *layout, struct bContext *C, int menus){} | |
339 void uiTemplateID(struct uiLayout *layout, struct bContext *C, struct PointerRNA
*ptr, char *propname, char *newop, char *unlinkop){} | |
340 struct uiLayout *uiTemplateModifier(struct uiLayout *layout, struct PointerRNA *
ptr){return (struct uiLayout *) NULL;} | |
341 struct uiLayout *uiTemplateConstraint(struct uiLayout *layout, struct PointerRNA
*ptr){return (struct uiLayout *) NULL;} | |
342 void uiTemplatePreview(struct uiLayout *layout, struct ID *id, int show_buttons,
struct ID *parent, struct MTex *slot){} | |
343 void uiTemplateIDPreview(struct uiLayout *layout, struct bContext *C, struct Poi
nterRNA *ptr, char *propname, char *newop, char *openop, char *unlinkop, int row
s, int cols){} | |
344 void uiTemplateCurveMapping(struct uiLayout *layout, struct CurveMapping *cumap,
int type, int compact){} | |
345 void uiTemplateColorRamp(struct uiLayout *layout, struct ColorBand *coba, int ex
pand){} | |
346 void uiTemplateLayers(struct uiLayout *layout, struct PointerRNA *ptr, char *pro
pname){} | |
347 void uiTemplateImageLayers(struct uiLayout *layout, struct bContext *C, struct I
mage *ima, struct ImageUser *iuser){} | |
348 ListBase uiTemplateList(struct uiLayout *layout, struct bContext *C, struct Poin
terRNA *ptr, char *propname, struct PointerRNA *activeptr, char *activepropname,
int rows, int listtype){struct ListBase b = {0,0}; return b;} | |
349 void uiTemplateRunningJobs(struct uiLayout *layout, struct bContext *C){} | |
350 void uiTemplateOperatorSearch(struct uiLayout *layout){} | |
351 void uiTemplateHeader3D(struct uiLayout *layout, struct bContext *C){} | |
352 void uiTemplateTextureImage(struct uiLayout *layout, struct bContext *C, struct
Tex *tex){} | |
353 void uiTemplateImage(struct uiLayout *layout, struct bContext *C, struct Pointer
RNA *ptr, char *propname, struct PointerRNA *userptr, int compact){} | |
354 void uiTemplateDopeSheetFilter(struct uiLayout *layout, struct bContext *C, stru
ct PointerRNA *ptr){} | |
355 void uiTemplateColorWheel(struct uiLayout *layout, struct PointerRNA *ptr, char
*propname, int value_slider){} | |
356 void uiTemplateHistogram(struct uiLayout *layout, struct PointerRNA *ptr, char *
propname, int expand){} | |
357 void uiTemplateReportsBanner(struct uiLayout *layout, struct bContext *C, struct
wmOperator *op){} | |
358 void uiTemplateWaveform(struct uiLayout *layout, struct PointerRNA *ptr, char *p
ropname, int expand){} | |
359 void uiTemplateVectorscope(struct uiLayout *_self, struct PointerRNA *data, char
* property, int expand){} | |
360 | |
361 /* rna render */ | |
362 struct RenderResult *RE_engine_begin_result(struct RenderEngine *engine, int x,
int y, int w, int h){return (struct RenderResult *) NULL;} | |
363 struct RenderResult *RE_AcquireResultRead(struct Render *re){return (struct Rend
erResult *) NULL;} | |
364 struct RenderResult *RE_AcquireResultWrite(struct Render *re){return (struct Ren
derResult *) NULL;} | |
365 struct RenderStats *RE_GetStats(struct Render *re){return (struct RenderStats *)
NULL;} | |
366 void RE_engine_update_result(struct RenderEngine *engine, struct RenderResult *r
esult){} | |
367 void RE_engine_end_result(struct RenderEngine *engine, struct RenderResult *resu
lt){} | |
368 void RE_engine_update_stats(struct RenderEngine *engine, char *stats, char *info
){} | |
369 void RE_layer_load_from_file(struct RenderLayer *layer, struct ReportList *repor
ts, char *filename){} | |
370 void RE_result_load_from_file(struct RenderResult *result, struct ReportList *re
ports, char *filename){} | |
371 void RE_AcquireResultImage(struct Render *re, struct RenderResult *rr){} | |
372 void RE_ReleaseResult(struct Render *re){} | |
373 void RE_ReleaseResultImage(struct Render *re){} | |
374 int RE_engine_test_break(struct RenderEngine *engine){return 0;} | |
375 | |
376 /* python */ | |
377 struct wmOperatorType *WM_operatortype_find(const char *idname, int quiet){retur
n (struct wmOperatorType *) NULL;} | |
378 struct wmOperatorType *WM_operatortype_first(){return (struct wmOperatorType *)
NULL;} | |
379 struct wmOperatorType *WM_operatortype_exists(const char *idname){return (struct
wmOperatorType *) NULL;} | |
380 struct wmOperatorTypeMacro *WM_operatortype_macro_define(struct wmOperatorType *
ot, const char *idname){return (struct wmOperatorTypeMacro *) NULL;} | |
381 int WM_operator_call_py(struct bContext *C, struct wmOperatorType *ot, int conte
xt, struct PointerRNA *properties, struct ReportList *reports){return 0;} | |
382 int WM_operatortype_remove(const char *idname){return 0;} | |
383 int WM_operator_poll(struct bContext *C, struct wmOperatorType *ot){return 0;} | |
384 int WM_operator_poll_context(struct bContext *C, struct wmOperatorType *ot, int
context){return 0;} | |
385 int WM_operator_props_popup(struct bContext *C, struct wmOperator *op, struct wm
Event *event){return 0;} | |
386 void WM_operator_properties_free(struct PointerRNA *ptr){} | |
387 void WM_operator_properties_create(struct PointerRNA *ptr, const char *opstring)
{} | |
388 void WM_operator_properties_create_ptr(struct PointerRNA *ptr, struct wmOperator
Type *ot){} | |
389 void WM_operator_properties_sanitize(struct PointerRNA *ptr, const short no_cont
ext){}; | |
390 void WM_operatortype_append_ptr(void (*opfunc)(struct wmOperatorType*, void*), v
oid *userdata){} | |
391 void WM_operatortype_append_macro_ptr(void (*opfunc)(struct wmOperatorType*, voi
d*), void *userdata){} | |
392 void WM_operator_bl_idname(char *to, const char *from){} | |
393 void WM_operator_py_idname(char *to, const char *from){} | |
394 void WM_operator_ui_popup(struct bContext *C, struct wmOperator *op, int width,
int height){} | |
395 short insert_keyframe (struct ID *id, struct bAction *act, const char group[], c
onst char rna_path[], int array_index, float cfra, short flag){return 0;} | |
396 short delete_keyframe(struct ID *id, struct bAction *act, const char group[], co
nst char rna_path[], int array_index, float cfra, short flag){return 0;}; | |
397 char *WM_operator_pystring(struct bContext *C, struct wmOperatorType *ot, struct
PointerRNA *opptr, int all_args){return (char *)NULL;} | |
398 struct wmKeyMapItem *WM_modalkeymap_add_item(struct wmKeyMap *km, int type, int
val, int modifier, int keymodifier, int value){return (struct wmKeyMapItem *)NUL
L;} | |
399 struct wmKeyMap *WM_modalkeymap_add(struct wmKeyConfig *keyconf, char *idname, E
numPropertyItem *items){return (struct wmKeyMap *) NULL;} | |
400 | |
401 /* RNA COLLADA dependency */ | |
402 int collada_export(struct Scene *sce, const char *filepath){ return 0; } | |
403 | |
404 int sculpt_get_brush_size(struct Brush *brush) {return 0;} | |
405 void sculpt_set_brush_size(struct Brush *brush, int size) {} | |
406 int sculpt_get_lock_brush_size(struct Brush *brush){ return 0;} | |
407 float sculpt_get_brush_unprojected_radius(struct Brush *brush){return 0.0f;} | |
408 void sculpt_set_brush_unprojected_radius(struct Brush *brush, float unprojected_
radius){} | |
409 float sculpt_get_brush_alpha(struct Brush *brush){return 0.0f;} | |
410 void sculpt_set_brush_alpha(struct Brush *brush, float alpha){} | |
411 void ED_sculpt_modifiers_changed(struct Object *ob){}; | |
412 | |
413 | |
414 /* bpy/python internal api */ | |
415 void operator_wrapper(struct wmOperatorType *ot, void *userdata) {} | |
416 void BPY_text_free_code(struct Text *text) {} | |
417 void BPY_id_release(struct Text *text) {} | |
418 int BPY_context_member_get(struct Context *C, const char *member, struct bContex
tDataResult *result) { return 0; } | |
419 void BPY_pyconstraint_target(struct bPythonConstraint *con, struct bConstraintTa
rget *ct) {} | |
420 float BPY_driver_exec(struct ChannelDriver *driver) {return 0.0f;} /* might need
this one! */ | |
421 void BPY_DECREF(void *pyob_ptr) {} | |
422 void BPY_pyconstraint_exec(struct bPythonConstraint *con, struct bConstraintOb *
cob, struct ListBase *targets) {} | |
423 void macro_wrapper(struct wmOperatorType *ot, void *userdata) {} ; | |
424 | |
425 | |
426 char blender_path[] = ""; | |
427 | |
428 #endif // WITH_GAMEENGINE | |
LEFT | RIGHT |