diff options
author | Daniel Stokes <kupomail@gmail.com> | 2013-12-18 02:42:47 +0400 |
---|---|---|
committer | kupoman <kupomail@gmail.com> | 2013-12-18 05:03:27 +0400 |
commit | e9e08a1d12594eab0e341049fc252ff8578e9333 (patch) | |
tree | ac7c15959b03398babb68058f3824c2a4dbff5b7 /source/blender/blenkernel/BKE_object.h | |
parent | 173f7a3d30db8cba95656bf03dc842b9300c2436 (diff) |
Game Engine: Level of detail support and tools
Levels of detail can be added and modified in the object panel. The object
panel also contains new tools for generating levels of detail, setting up
levels of detail based on object names (useful for importing), and
clearing an object's level of detail settings. This is meant as a game
engine feature, though the level of details settings can be previewed in
the viewport.
Reviewed By: moguri, nexyon, brecht
Differential Revision: http://developer.blender.org/D109
Diffstat (limited to 'source/blender/blenkernel/BKE_object.h')
-rw-r--r-- | source/blender/blenkernel/BKE_object.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_object.h b/source/blender/blenkernel/BKE_object.h index 434175624b7..e6e6d621ef3 100644 --- a/source/blender/blenkernel/BKE_object.h +++ b/source/blender/blenkernel/BKE_object.h @@ -87,6 +87,14 @@ struct Object *BKE_object_add_only_object(struct Main *bmain, int type, const ch struct Object *BKE_object_add(struct Main *bmain, struct Scene *scene, int type); void *BKE_object_obdata_add_from_type(struct Main *bmain, int type); +void BKE_object_lod_add(struct Object *ob); +void BKE_object_lod_sort(struct Object *ob); +bool BKE_object_lod_remove(struct Object *ob, int level); +bool BKE_object_lod_update(struct Object *ob, float camera_position[3]); +bool BKE_object_lod_is_usable(struct Object *ob, struct Scene *scene); +struct Object *BKE_object_lod_meshob_get(struct Object *ob, struct Scene *scene); +struct Object *BKE_object_lod_matob_get(struct Object *ob, struct Scene *scene); + struct Object *BKE_object_copy_ex(struct Main *bmain, struct Object *ob, int copy_caches); struct Object *BKE_object_copy(struct Object *ob); void BKE_object_make_local(struct Object *ob); |