goat3d

diff src/goat3d.h @ 76:9785847d52d4

bounding boxes calculation (untested) and automatic camera placement in goatview
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 08 May 2014 13:43:45 +0300
parents 99715321ad6d
children 70b7c41a4f17
line diff
     1.1 --- a/src/goat3d.h	Thu May 08 00:50:16 2014 +0300
     1.2 +++ b/src/goat3d.h	Thu May 08 13:43:45 2014 +0300
     1.3 @@ -123,6 +123,8 @@
     1.4  GOAT3DAPI void goat3d_set_ambient3f(struct goat3d *g, float ar, float ag, float ab);
     1.5  GOAT3DAPI const float *goat3d_get_ambient(const struct goat3d *g);
     1.6  
     1.7 +GOAT3DAPI void goat3d_get_bounds(const struct goat3d *g, float *bmin, float *bmax);
     1.8 +
     1.9  /* materials */
    1.10  GOAT3DAPI void goat3d_add_mtl(struct goat3d *g, struct goat3d_material *mtl);
    1.11  GOAT3DAPI int goat3d_get_mtl_count(struct goat3d *g);