OLD | NEW |
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 * </pre> | 95 * </pre> |
96 */ | 96 */ |
97 typedef struct BoundBox { | 97 typedef struct BoundBox { |
98 float vec[8][3]; | 98 float vec[8][3]; |
99 int flag, pad; | 99 int flag, pad; |
100 } BoundBox; | 100 } BoundBox; |
101 | 101 |
102 /* boundbox flag */ | 102 /* boundbox flag */ |
103 #define OB_BB_DISABLED 1 | 103 #define OB_BB_DISABLED 1 |
104 | 104 |
| 105 typedef struct LodLevel { |
| 106 struct LodLevel *next, *prev; |
| 107 struct Object *source; |
| 108 char use_mesh, use_mat, pad[2]; |
| 109 float distance; |
| 110 } LodLevel; |
| 111 |
105 typedef struct Object { | 112 typedef struct Object { |
106 ID id; | 113 ID id; |
107 struct AnimData *adt; /* animation data (must be immediately a
fter id for utilities to use it) */· | 114 struct AnimData *adt; /* animation data (must be immediately a
fter id for utilities to use it) */· |
108 | 115 |
109 struct SculptSession *sculpt; | 116 struct SculptSession *sculpt; |
110 ········ | 117 ········ |
111 short type, partype; | 118 short type, partype; |
112 int par1, par2, par3; /* can be vertexnrs */ | 119 int par1, par2, par3; /* can be vertexnrs */ |
113 char parsubstr[64]; /* String describing subobject info, MAX_ID_NAME
-2 */ | 120 char parsubstr[64]; /* String describing subobject info, MAX_ID_NAME
-2 */ |
114 struct Object *parent, *track; | 121 struct Object *parent, *track; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 unsigned int init_state; /* bit masks of initial state as recorde
d by the users */ | 276 unsigned int init_state; /* bit masks of initial state as recorde
d by the users */ |
270 | 277 |
271 ListBase gpulamp; /* runtime, for glsl lamp display only *
/ | 278 ListBase gpulamp; /* runtime, for glsl lamp display only *
/ |
272 ListBase pc_ids; | 279 ListBase pc_ids; |
273 ListBase *duplilist; /* for temporary dupli list storage, only for us
e by RNA API */ | 280 ListBase *duplilist; /* for temporary dupli list storage, only for us
e by RNA API */ |
274 ········ | 281 ········ |
275 struct RigidBodyOb *rigidbody_object; /* settings for Bullet r
igid body */ | 282 struct RigidBodyOb *rigidbody_object; /* settings for Bullet r
igid body */ |
276 struct RigidBodyCon *rigidbody_constraint; /* settings for Bullet c
onstraint */ | 283 struct RigidBodyCon *rigidbody_constraint; /* settings for Bullet c
onstraint */ |
277 | 284 |
278 float ima_ofs[2]; /* offset for image empties */ | 285 float ima_ofs[2]; /* offset for image empties */ |
| 286 |
| 287 ListBase lodlevels; /* contains data for levels of detail */ |
| 288 LodLevel *currentlod; |
279 } Object; | 289 } Object; |
280 | 290 |
281 /* Warning, this is not used anymore because hooks are now modifiers */ | 291 /* Warning, this is not used anymore because hooks are now modifiers */ |
282 typedef struct ObHook { | 292 typedef struct ObHook { |
283 struct ObHook *next, *prev; | 293 struct ObHook *next, *prev; |
284 ········ | 294 ········ |
285 struct Object *parent; | 295 struct Object *parent; |
286 float parentinv[4][4]; /* matrix making current transform unmodified */ | 296 float parentinv[4][4]; /* matrix making current transform unmodified */ |
287 float mat[4][4]; /* temp matrix while hooking */ | 297 float mat[4][4]; /* temp matrix while hooking */ |
288 float cent[3]; /* visualization of hook */ | 298 float cent[3]; /* visualization of hook */ |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 #define OB_MODE_ALL_PAINT (OB_MODE_SCULPT|OB_MODE_VERTEX_PAINT|OB_MODE_WEIGHT_PA
INT|OB_MODE_TEXTURE_PAINT) | 624 #define OB_MODE_ALL_PAINT (OB_MODE_SCULPT|OB_MODE_VERTEX_PAINT|OB_MODE_WEIGHT_PA
INT|OB_MODE_TEXTURE_PAINT) |
615 | 625 |
616 #define MAX_DUPLI_RECUR 8 | 626 #define MAX_DUPLI_RECUR 8 |
617 | 627 |
618 #ifdef __cplusplus | 628 #ifdef __cplusplus |
619 } | 629 } |
620 #endif | 630 #endif |
621 | 631 |
622 #endif | 632 #endif |
623 | 633 |
OLD | NEW |