cpp-io2d / P0267_RefImpl

Reference Implementations of P0267, the proposed 2D graphics API for ISO C++
Other
313 stars 114 forks source link

Make command lists take object parameters by modifiable reference #118

Closed mikebmcl closed 5 years ago

mikebmcl commented 5 years ago

Modifying state during execution of command lists is an essential feature of the back-ends that will benefit from command lists. As such, the state objects that are part of the command list should be modifiable using the run_function command. Users will also need to restore their state once they've finished modifying them. Unless they want the modified state to exist at the beginning of the next execution of the command list, of course. This will provide users more control at the expense of requiring them to manage threading and locks. The "immediate" API used by directly calling functions on surfaces will remain free of the need for the user to deal with any threading and lock issues.

mikebmcl commented 5 years ago

Closed by e94d358.