I have seen quite a lot lately, in games or other applications, that members of a data class, or methods or other things have a "_" in front of the name. For example, for DXUT.cpp (Directx) _Acquires_lock_(g_cs)or _Releases_lock_(g_cs)or _tmain. There are many examples like this in game programming, for example there (taken from GameFromScratch Tutorial).
static GameState _gameState;
static sf::RenderWindow _mainWindow;
These are just some data members of some type.
Is there a reason for _ char? Is there something for something?
source
share