[AdgEntity] API cleaned up
commitb2e63aeb8ba9263f37f08f7445791ef6871353b7
authorNicola Fontana <ntd@entidi.it>
Thu, 24 Sep 2009 11:29:36 +0000 (24 13:29 +0200)
committerNicola Fontana <ntd@entidi.it>
Thu, 24 Sep 2009 11:29:36 +0000 (24 13:29 +0200)
tree1e235287cb284674cdbd5379874e63e09c965a25
parent840f6e4aaef2f9c8be041427d57c6e487cd88740
[AdgEntity] API cleaned up

arrange() and render() virtual methods must have a common API, so
adg_entity_apply_local_matrix() has been dropped. Changed the accessors
to the global and local matrices to return a const pointer to the
internal matrix, hence avoiding a call to adg_matrix_copy() and allowing
to remove the setter (adg_entity_set_local_matrix() and
adg_entity_set_global_matrix()). In the worst case, if an implementation
needs to change on-fly a matrix can cast the returned const pointer from
adg_entity_{global,local}_matrix() and modify it.
adg/adg-entity.c
adg/adg-entity.h