Currently, app code must call setMaxContexts either directly or indirectly on
any class derived from ObjectID. This is very inconvenient, especially for
dynamic creation of objects at runtime.
A better solution would be a one-time jagDraw::init() static function that
would take maxContexts as a parameter (or possibly a struct of initialization
information, for possible future init parameters) and store it in a singleton.
ObjectID constructor would then access that singleton to get the number of
contexts, so that it would be set automatically without an explicit call from
the app.
Original issue reported on code.google.com by SkewMat...@gmail.com on 29 Sep 2013 at 4:23
Original issue reported on code.google.com by
SkewMat...@gmail.com
on 29 Sep 2013 at 4:23