-
-
Notifications
You must be signed in to change notification settings - Fork 183
Naming convention
panzergame edited this page Oct 1, 2016
·
1 revision
The naming convention follow the CamelCase style. This style is used in the C++ sources but also in python.
In the python side all the functions and attributes should start with a lower case and use upper case for first letter of following words. In example:
object.replaceMesh
object.setParent
object.worldPosition
object.groupMembers
In the C++ side the CamelCase is used everywhere excepted inside of functions and static functions. Inside functions the naming style is tolerant same or the argument name of this function. For static function two naming style are used:
staticFunction()
static_function()
The first is used for internal purpose and the second for python static functions of getter/setter.
C++ function contrary to python use a upper case even for the first letter:
GetAttributes()
And the member of a classes are named:
m_complexMemberName
No more type prefix in the name.