From: Jerome B. <be...@gr...> - 2003-01-28 17:27:46
|
Hi I'm currently implementing a wxWindows version of the GuidoLib. In order to make it cross-platform, and to resolve some dependencies, such as fonts and graphics, I propose to add an initialization function to the Guido API: int GuidoInit( GuidoInitDesc * desc ); GuidoInitDesc is defined as follow: typedef struct { GDevice * graphicDevice; // NULL: use default device GuidoFeedback * feedback; // NULL: no feedback } GuidoInitDesc; This function initialize the GuidoLib engine with the resources necessary to provide feedback at user level (but in charge of the client application) and to access the graphical device and fonts. Implementation of the corresponding objects is platform dependent. It ensures the engine portability. Actually, this function should be called before any graphic layout, but as this layout is interleaved within parsing methods, it is better to recommend calling this function at initialization time. Jerome Berthet Grame: Centre National de creation musicale www.grame.fr |