From f4298de8aaafd36cb8da6f7051c24ca630589001 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 5 Mar 2010 14:06:39 +0000 Subject: utility function object_camera_matrix, moved code from RE_SetCamera into this. use for getting the render matrix of a camera (view plane, winmat, clipstart/end) without rendering. --- source/blender/blenkernel/BKE_object.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/blenkernel/BKE_object.h') diff --git a/source/blender/blenkernel/BKE_object.h b/source/blender/blenkernel/BKE_object.h index a6a641a3219..1362a191919 100644 --- a/source/blender/blenkernel/BKE_object.h +++ b/source/blender/blenkernel/BKE_object.h @@ -45,6 +45,7 @@ struct SoftBody; struct BulletSoftBody; struct Group; struct bAction; +struct RenderData; void clear_workob(struct Object *workob); void what_does_parent(struct Scene *scene, struct Object *ob, struct Object *workob); @@ -128,6 +129,10 @@ int object_insert_ptcache(struct Object *ob); // void object_delete_ptcache(struct Object *ob, int index); struct KeyBlock *object_insert_shape_key(struct Scene *scene, struct Object *ob, char *name, int from_mix); +void object_camera_matrix( + struct RenderData *rd, struct Object *camera, int winx, int winy, short field_second, + float winmat[][4], struct rctf *viewplane, float *clipsta, float *clipend, float *lens, float *ycor, + float *viewdx, float *viewdy); #ifdef __cplusplus } -- cgit v1.2.3