pyovr
pyovr copied to clipboard
Resolve schizophrenic nature of ovr.Matrix4f
Is Matrix4f a 4x4 or a 1x16 container?
- 4x4 seems semantically correct.
- We already want to use methods like glLoadMatrixf(), that want a flat list of 16 numbers.
None of the solutions here... http://stackoverflow.com/questions/952914/making-a-flat-list-out-of-list-of-lists-in-python ...look quite straightforward enough to expect users to keep using them. So I think I want to do 1 - change getelement access to fetch a 4x4 matrix. 2 - create a convenience method .toFlatList(), say. But I think the result might be the transpose of what we are delivering now, with list(Matrix4f). So the examples would need to change in two ways.