1,554
edits
(Fix syntax highlighting) |
(Added note about testbed) |
||
Line 38: | Line 38: | ||
=== Subclassing OSystem === | === Subclassing OSystem === | ||
TODO: This section is meant to give some specific hints on creating a useful OSystem subclass. For now I can't really think of anything useful besides the obvious, and besides what we already say in other places... Take a look at [http://doxygen.scummvm.org/d9/df4/classOSystem.html OSystem class] which contains lots of useful information. Also take a look at null.cpp to see what you have to implement, and peek at the SDL backend (which is our main backend and thus kind of a reference for all the others). And finally, take a look at <tt>common/system.h</tt> to see which methods are pure abstract, and thus '''must''' be implemented by you. Oh and of course: You can always talk to us on [[IRC Channel|IRC]] or via [[Mailing lists|email]] :-). | TODO: This section is meant to give some specific hints on creating a useful OSystem subclass. For now I can't really think of anything useful besides the obvious, and besides what we already say in other places... Take a look at [http://doxygen.scummvm.org/d9/df4/classOSystem.html OSystem class] which contains lots of useful information. Also take a look at null.cpp to see what you have to implement, and peek at the SDL backend (which is our main backend and thus kind of a reference for all the others). And finally, take a look at <tt>common/system.h</tt> to see which methods are pure abstract, and thus '''must''' be implemented by you. Oh and of course: You can always talk to us on [[IRC Channel|IRC]] or via [[Mailing lists|email]] :-). | ||
==== Testing your backend ==== | |||
We have a special game engine, called 'testbed'. Its only purpose is to perform series of tests which help engine authors to see correctness of their implementation. | |||
To run the game, point ScummVM to directory <tt><scummvm sources root>/dists/engine-data/testbed-audiocd-files/</tt> and then run. Follow the on-screen instructions. | |||
=== Misc notes === | === Misc notes === |