Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-05-14 08:25:47 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-14 08:25:47 +0400
commit4b7d981c91f1c0ce97471ee55c322e8a9f61107f (patch)
tree8726e3e32325e80c66fc4a86c3617b74c99575d7 /source/blender/editors/include/ED_view3d.h
parentdaa3dd0e9bc4ebc0e61a7d4a2bbce21f1fef0ce8 (diff)
view3d api edits, no functional changes.
rename v3d functions * view3d_to_ob -> ED_view3d_to_object * view3d_apply_ob -> ED_view3d_from_object * view3d_apply_mat4 -> ED_view3d_from_m4 Changed ED_view3d_to_object() not to temp modify the view rotation and don't overwrite the objects recalc.
Diffstat (limited to 'source/blender/editors/include/ED_view3d.h')
-rw-r--r--source/blender/editors/include/ED_view3d.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h
index 673a1ab265e..8ed1488c599 100644
--- a/source/blender/editors/include/ED_view3d.h
+++ b/source/blender/editors/include/ED_view3d.h
@@ -109,6 +109,7 @@ void viewvector(struct RegionView3D *rv3d, float coord[3], float vec[3]);
void viewline(struct ARegion *ar, struct View3D *v3d, float mval[2], float ray_start[3], float ray_end[3]);
void viewray(struct ARegion *ar, struct View3D *v3d, float mval[2], float ray_start[3], float ray_normal[3]);
+void get_object_clip_range(struct Object *ob, float *lens, float *clipsta, float *clipend);
int get_view3d_cliprange(struct View3D *v3d, struct RegionView3D *rv3d, float *clipsta, float *clipend);
int get_view3d_viewplane(struct View3D *v3d, struct RegionView3D *rv3d, int winxi, int winyi, struct rctf *viewplane, float *clipsta, float *clipend, float *pixsize);
int get_view3d_ortho(struct View3D *v3d, struct RegionView3D *rv3d);
@@ -187,10 +188,10 @@ unsigned int ED_viewedit_datamask(struct bScreen *screen);
/* assigning view matrix */
-void view3d_apply_mat4(float mat[][4], float *ofs, float *quat, float *dist);
+void ED_view3d_from_m4(float mat[][4], float ofs[3], float quat[4], float *dist);
-void view3d_apply_ob(struct Object *ob, float *ofs, float *quat, float *dist, float *lens);
-void view3d_to_ob(struct RegionView3D *rv3d, struct Object *ob);
+void ED_view3d_from_object(struct Object *ob, float ofs[3], float quat[4], float *dist, float *lens);
+void ED_view3d_to_object(struct Object *ob, const float ofs[3], const float quat[4], const float dist);
int view3d_is_ortho(struct View3D *v3d, struct RegionView3D *rv3d);