Confirmed users, Bureaucrats and Sysops emeriti
1,680
edits
No edit summary |
|||
| Line 29: | Line 29: | ||
= Async Drawing Mechanics = | = Async Drawing Mechanics = | ||
Any async drawing model will allow plugins to create one or more surfaces for drawing. The plugin will tell the host which surface is current at any given time and the host will display the current plugin surface for as long as it is current. While a surface is current the plugin is not allowed to modify it. This system allows the plugin to choose whether to double or triple buffer. | |||
Surfaces are specified via the <code>NPAsyncSurface</code> structure. This structure contains a pointer to a platform-specific resource of the type defined by the drawing model: | Surfaces are specified via the <code>NPAsyncSurface</code> structure. This structure contains a pointer to a platform-specific resource of the type defined by the drawing model: | ||