Changes between Initial Version and Version 1 of Ticket #976
- Timestamp:
- 03/26/09 23:31:37 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #976 – Description
initial v1 3 3 We've had this idea floating around for awhile, that it could be possible to inherit Model and "program" the rendering code using a subset of GL syntax. 4 4 5 This would look and act like a standard Python method. When set it's run but instead of actually performing the OpenGL operations it adds them to a serialized command array. Tokens on the array represent OpenGL calls and their arguments, some values representing variables of the model or body it's rendering at (ie, position).5 This would look and act like a Python method soy.models.Model.render. It's run when the method is added but instead of actually performing the OpenGL operations it compiles them to a serialized command array. Tokens on the array represent OpenGL calls and their arguments, some values representing variables of the model or body it's rendering at (ie, position). 6 6 7 7 On render, the serialized command array is "run" from C, which would likely look like a large switch statement with most cases forwarding the array pointer as arguments to that statement are read and the actual OpenGL call run.



