17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 12:09:19 +02:00
Files
maszyna/environment/sky.cpp
maj00r 6550c88536 give importers the headers module templates need
A template defined in a module interface is instantiated in the importing
unit, where its body's types must be complete. A declaration reaching the
importer only through the interface's global module fragment is not
enough for MSVC: cParser::operator>> uses std::stringstream, and every
unit that parsed a float got an incomplete type.

526 headers across 161 units, derived from what each interface's template
bodies actually name.
2026-09-10 01:20:33 +02:00

32 lines
731 B
C++

module;
#include <ostream>
#include <string>
#include "utilities/Globals_macros.h"
module eu07.environment.sky;
import eu07.utilities.globals;
import eu07.model.mdlmngr;
/*
This Source Code Form is subject to the
terms of the Mozilla Public License, v.
2.0. If a copy of the MPL was not
distributed with this file, You can
obtain one at
http://mozilla.org/MPL/2.0/.
*/
//---------------------------------------------------------------------------
//GLfloat lightPos[4] = {0.0f, 0.0f, 0.0f, 1.0f};
void TSky::Init() {
if (Global.asSky != "1"
&& Global.asSky != "0" ) {
mdCloud = TModelsManager::GetModel( Global.asSky );
}
};
//---------------------------------------------------------------------------