Forked from
gmsh / gmsh
Source project has a limited visibility.
-
Christophe Geuzaine authored
Encapsulate toolkit-dependent global drawing functions in new drawContextGlobal class, and add a static drawContextGlobal to drawContext, with a default version that does nothing. This allows to have a completely virtualized drawing system: we can now ship a library with a fully working graphic system, indepedent of the widget toolkit. A client code just needs to subclass drawContextGlobal to get working graphics (see e.g. api_demos/mainAntTweakBar.cpp)
Christophe Geuzaine authoredEncapsulate toolkit-dependent global drawing functions in new drawContextGlobal class, and add a static drawContextGlobal to drawContext, with a default version that does nothing. This allows to have a completely virtualized drawing system: we can now ship a library with a fully working graphic system, indepedent of the widget toolkit. A client code just needs to subclass drawContextGlobal to get working graphics (see e.g. api_demos/mainAntTweakBar.cpp)