Coding standard

From MaratisWiki
Revision as of 20:37, 9 February 2014 by Dahnielson (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Internal coding standard for Maratis:

  • All code files should include the license at the top.
  • Name of the original author of the file should be added before the license.
  • All classes start with M (for Maratis).
  • Function names are camelCase, starting with lower case.
  • Member variables are prefixed by m_ and begin lower case.
  • Use of singletons is acceptable, but reserved for the engine and hardware devices.
  • Enums are all uppercase starting with M_.
 enum M_MATRIX_MODES
 {
       M_MATRIX_MODELVIEW = 0,
       M_MATRIX_PROJECTION,
       M_MATRIX_TEXTURE,
 };
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox