Blender  V3.3
BKE_duplilist.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2001-2002 NaN Holding BV. All rights reserved. */
3 #pragma once
4 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 struct Depsgraph;
14 struct ID;
15 struct ListBase;
16 struct Object;
17 struct ParticleSystem;
18 struct Scene;
19 
20 /* ---------------------------------------------------- */
21 /* Dupli-Geometry */
22 
27  struct Scene *sce,
28  struct Object *ob);
29 void free_object_duplilist(struct ListBase *lb);
30 
31 typedef struct DupliObject {
32  struct DupliObject *next, *prev;
33  /* Object whose geometry is instanced. */
34  struct Object *ob;
35  /* Data owned by the object above that is instanced. This might not be the same as `ob->data`. */
36  struct ID *ob_data;
37  float mat[4][4];
38  float orco[3], uv[2];
39 
40  short type; /* from Object.transflag */
41  char no_draw;
42 
43  /* Persistent identifier for a dupli object, for inter-frame matching of
44  * objects with motion blur, or inter-update matching for syncing. */
45  int persistent_id[8]; /* MAX_DUPLI_RECUR */
46 
47  /* Particle this dupli was generated from. */
49 
50  /* Random ID for shading */
51  unsigned int random_id;
53 
54 #ifdef __cplusplus
55 }
56 #endif
struct ListBase * object_duplilist(struct Depsgraph *depsgraph, struct Scene *sce, struct Object *ob)
void free_object_duplilist(struct ListBase *lb)
struct DupliObject DupliObject
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
const Depsgraph * depsgraph
float uv[2]
Definition: BKE_duplilist.h:38
float mat[4][4]
Definition: BKE_duplilist.h:37
struct DupliObject * prev
Definition: BKE_duplilist.h:32
struct ParticleSystem * particle_system
Definition: BKE_duplilist.h:48
int persistent_id[8]
Definition: BKE_duplilist.h:45
float orco[3]
Definition: BKE_duplilist.h:38
struct ID * ob_data
Definition: BKE_duplilist.h:36
struct Object * ob
Definition: BKE_duplilist.h:34
unsigned int random_id
Definition: BKE_duplilist.h:51
struct DupliObject * next
Definition: BKE_duplilist.h:32
Definition: DNA_ID.h:368