commit | a9fc9b20da43b0e5d01b10097d6f2e6fafcd6626 | [log] [tgz] |
---|---|---|
author | Rob Tsuk <robtsuk@google.com> | Thu Jan 22 12:46:31 2015 -0800 |
committer | Rob Tsuk <robtsuk@google.com> | Thu Jan 22 13:53:42 2015 -0800 |
tree | 48e9911ba1dfad247eb76134a6a4c72994960a8c | |
parent | e1f183d01be8893bfb686731fd00156c6c45c15e [diff] |
Ensure compatible layout for vertices Require that these structs have standard layout, which is what we need to pass them to OpenGL. Inheritence with data members violates the rules for standard layout so I re-implemented them using templates to share the code and putting all the data members in each struct. Change-Id: I19cd0e5518728f2d3e0993b17d15fce7be7e0edb