Genesis/Terminus
Posted: 2007-01-18T15:47:36-07:00
I am unclear about the purpose or usage of the MagickWandGenesis / MagickWandTerminus methods.
The only examples of usage are brief self-contained procedures, where Genesis is used at the start and Terminus at the end. Simple enough to understand that they bracket a body of Magick code. However, I will be using the API in a more complex MS Windows environment, with multiple windows, called modules, and quite possibly multiple execution threads. I will have modules that act on images in passed wands, and also create and destroy local wands.
It isn't clear whether there should be a single Genesis/Terminus bracket for the entire application, for a window, or for a module of code. Or all of the above. It isn't clear whether a local Genesis / Terminus bracket establishes a new context and if so, whether wands passed into that context are valid.
A little guidance would be appreciated.
I tried to read the source for clues, but found it over my head. (Not familiar with splay trees and don't think I want to know. Also, my understanding of C is somewhat limited. I use a different language.)
The only examples of usage are brief self-contained procedures, where Genesis is used at the start and Terminus at the end. Simple enough to understand that they bracket a body of Magick code. However, I will be using the API in a more complex MS Windows environment, with multiple windows, called modules, and quite possibly multiple execution threads. I will have modules that act on images in passed wands, and also create and destroy local wands.
It isn't clear whether there should be a single Genesis/Terminus bracket for the entire application, for a window, or for a module of code. Or all of the above. It isn't clear whether a local Genesis / Terminus bracket establishes a new context and if so, whether wands passed into that context are valid.
A little guidance would be appreciated.
I tried to read the source for clues, but found it over my head. (Not familiar with splay trees and don't think I want to know. Also, my understanding of C is somewhat limited. I use a different language.)