17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-30 02:47:28 +01:00

pch migration to modules [wip]

This commit is contained in:
maj00r
2026-09-09 20:35:26 +02:00
parent c3007e3237
commit 3f7960aad5
350 changed files with 5958 additions and 3059 deletions

36
environment/stars.cppm Normal file
View File

@@ -0,0 +1,36 @@
//////////////////////////////////////////////////////////////////////////////////////////
// cStars -- simple starfield model, simulating appearance of starry sky
module;
export module eu07.environment.stars;
import eu07.simcore;
import eu07.utilities.classes;
export {
class cStars {
public:
// types:
// methods:
void init();
// constructors:
cStars() = default;
// deconstructor:
// members:
public:
// read directly by the renderers. They used to be friends, but a friend
// declaration naming a class from another module would require importing it,
// and that import closes a cycle the module graph does not allow.
// members:
float m_longitude{ 19.0f }; // geograpic coordinates hardcoded roughly to Poland location, for the time being
float m_latitude{ 52.0f };
TModel3d *m_stars { nullptr };
};
} // export