________________________ Variable Naming ________________________ Prefix notation is used where it is deemed to be helpful, but not used religiously. It's not just about the type a variable was declared as, it's also about variable use. Prefixes recommended: m_ member variable of a class g_ global variable p pointer pfn function pointer b used as a boolean, can be an int or bool nb number of (example: number of triangles in a mesh ) Optional Prefixes: e enum v 3D vector q quaternion M matrix s used as a string, can be std::string or char* f 32-bit float n number h windows handle C class( on declaration only ) S structure( on declaration only ) Some Abbreviations, often used as suffixes: Pos Position Vel Velocity Vec 3D Vector OS Object Space WS World Space Suffixes: Flags - per bit flags Type - used with enums Mode - used with enums, implies a settable state Id - numerical id, usually for assets