diff options
author | Robert Bragg <robert@linux.intel.com> | 2013-10-14 18:07:31 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2013-10-14 18:07:31 +0100 |
commit | 88018b90361215ec33fa317a2c3caf54beffbffa (patch) | |
tree | 4f142f4087f3aee7ba1cd9f2b655e07a1286d564 /cogl/cogl-quaternion.h | |
parent | 60fcd9c87cf5d8ae8c41134217ee0e1fa2fbd46e (diff) | |
download | cogl-88018b90361215ec33fa317a2c3caf54beffbffa.tar.gz |
Remove padding from eulers and quaternions
One of the notable advantages of a Euler representation of a rotation is
that it is compact but we negate that benefit if all CoglEulers have
enough padding to potentially cache a quaternion in the future. Having
padding for all CoglQuaternions is probably also unnecessary as higher
level code can find its own ways of caching data relating to
quaternions.
Reviewed-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'cogl/cogl-quaternion.h')
-rw-r--r-- | cogl/cogl-quaternion.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cogl/cogl-quaternion.h b/cogl/cogl-quaternion.h index 02be22e8..5db274c4 100644 --- a/cogl/cogl-quaternion.h +++ b/cogl/cogl-quaternion.h @@ -128,14 +128,8 @@ struct _CoglQuaternion float x; float y; float z; - - /*< private >*/ - float padding0; - float padding1; - float padding2; - float padding3; }; -COGL_STRUCT_SIZE_ASSERT (CoglQuaternion, 32); +COGL_STRUCT_SIZE_ASSERT (CoglQuaternion, 16); /** * cogl_quaternion_init: |