271
edits
Ccawley2011 (talk | contribs) (First draft) |
Ccawley2011 (talk | contribs) |
||
Line 7: | Line 7: | ||
* The backend's <tt>OSystem</tt> subclass should inherit from the <tt>ModularGraphicsBackend</tt> class. | * The backend's <tt>OSystem</tt> subclass should inherit from the <tt>ModularGraphicsBackend</tt> class. | ||
* A subclass of <tt>GraphicsManager</tt> should be created in a subdirectory of <tt>backends/graphics</tt>, and the source files should be added to <tt>backends/module.mk</tt>. | * A subclass of <tt>GraphicsManager</tt> should be created in a subdirectory of <tt>backends/graphics</tt>, and the source files should be added to <tt>backends/module.mk</tt>. | ||
* <tt>_graphicsManager</tt> should be set to a new instance of the graphics manager in the <tt>initBackend</tt> function. | |||
Older backends may implement the graphics functionality directly in the <tt>OSystem</tt> subclass instead. | Older backends may implement the graphics functionality directly in the <tt>OSystem</tt> subclass instead. |
edits