-
Notifications
You must be signed in to change notification settings - Fork 1
Naming conventions
StanPlayzz edited this page Dec 30, 2025
·
5 revisions
This page is intended for contributors to this project
Note
For formatting please refer to the .editorconfig and .clang-format files in the repo.
Use snake_case, ie player_controller.hpp
Use PascalCase, ie struct FooCreateInfo or class Engine
Local Variables:
Use camelCase, ie auto rendererCreateInfo
Member Variables
Use camelCase with a prefix m_, ie m_playerController
Use camelCase, ie void setPosition(glm::vec2 const position)
Use camelCase and add the suffix _v, ie auto constexpr playerMoveSpeed_v
Use SNAKE_CASE_ALL_CAPS
Use caps, ie contextCreateInfo -> contextCI
Never use auto foo() -> Type, just put the type in front for readability.