Open main menu

Difference between revisions of "HOWTO-Engines"

63 bytes added ,  13:16, 30 March 2007
Line 26: Line 26:


=== File name conventions ===
=== File name conventions ===
Since of the course of its existance, many people will have to deal with the source code of a given engine (be it to fix bugs in it, modify it to still compile after changes made to tbe backend code, or to simply add new functionality), it is useful to adhere to various conventions used throughout all engines. Besides source code conventions (see [[Code Formatting]]), this affects filenames. We suggest you use the following names for specific parts of your engine"
Since of the course of its existance, many people will have to deal with the source code of a given engine (be it to fix bugs in it, modify it to still compile after changes made to tbe backend code, or to simply add new functionality), it is useful to adhere to various conventions used throughout all engines. Besides source code conventions (see [[Code Formatting Conventions]]), this affects filenames. We suggest you use the following names for specific parts of your engine:
 
{| border="1" cellpadding="2" width=100%
{| border="1" cellpadding="2" width=100%
|-
|-
Line 38: Line 39:
|-
|-
|detection.cpp || Code related to game detection (usually contained in plugin.cpp, but can be factored out if necessary)
|detection.cpp || Code related to game detection (usually contained in plugin.cpp, but can be factored out if necessary)
|-
|debug.cpp, debugger.cpp || (console) debugger
|-
|-
|gfx.cpp (alt: graphics.cpp) || Graphics code
|gfx.cpp (alt: graphics.cpp) || Graphics code
1,079

edits