by
Published on 25-10-2012 12:00
Number of Views: 10288
TBGL rendering system is internally based on the OpenGL technology, therefore it shares the state machine oriented design. This means that once you set some of the states, such as drawing color, it stays enabled until you change it to something else. While this can be advantageous in some situations, in others it can cause problem, especially when trying to write modular code.
This article describes the possible side effects of state handling and proposes new code style which should help you write modular graphic code of better quality.
...