Changes between Initial Version and Version 1 of Ticket #976


Ignore:
Timestamp:
03/26/09 23:31:37 (4 years ago)
Author:
ArcRiley
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #976 – Description

    initial v1  
    33We'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. 
    44 
    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). 
     5This 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). 
    66 
    77On 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.