mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-04-08 16:50:22 +02:00
And also: * Use glVertex2f, not glVertex3f * Opening curly brackets on a new line * spaces between most operators * avoir some very long lines, or indentations
11 lines
372 B
Plaintext
11 lines
372 B
Plaintext
Coding style
|
|
============
|
|
|
|
* indent with 2 spaces
|
|
* opening curly braces on a new line
|
|
* function and method names camelCase, with lowercase first letter
|
|
* class names CamelCase
|
|
* private data members with an underscore as a prefix: _likeThis
|
|
* file names all lowercase
|
|
* always add spaces between operators such as +, -, /, * casts, etc. (except pointers and references)
|