pmartz / jag-3d

Automatically exported from code.google.com/p/jag-3d
0 stars 1 forks source link

setMaxContexts alternative #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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