Rework internal module registration to happen in constructors.

This commit is contained in:
Sasha Szpakowski
2024-02-24 15:21:38 -04:00
parent c7e4dafd88
commit 1e97e09b28
73 changed files with 154 additions and 248 deletions
+3 -2
View File
@@ -180,8 +180,9 @@ Graphics::DisplayState::DisplayState()
defaultSamplerState.mipmapFilter = SamplerState::MIPMAP_FILTER_LINEAR;
}
Graphics::Graphics()
: width(0)
Graphics::Graphics(const char *name)
: Module(M_GRAPHICS, name)
, width(0)
, height(0)
, pixelWidth(0)
, pixelHeight(0)