17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 22:39:19 +02:00
Files
maszyna/environment/stars.cppm
2026-09-09 20:35:26 +02:00

37 lines
860 B
C++

//////////////////////////////////////////////////////////////////////////////////////////
// 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