8 #ifndef AtmosphereEngine_AtmosphereEngine_h
9 #define AtmosphereEngine_AtmosphereEngine_h
16 #include "OpenGL_Includes.h"
47 void create(
bool _fullload);
52 void resize(
int _w,
int _h);
56 void moveCam(vmml::Vector3f _movement);
60 bool setSpectrum(
int lowRed_,
int highRed_,
int lowGreen_,
int highGreen_,
int lowBlue_,
int highBlue_);
61 bool addLayer(
int innerRadius_,
int outerRadius_,
double density_,
bool earthDensity_);
78 std::shared_ptr<ge::Shader> shaderForUtilities;
79 std::shared_ptr<ge::Shader> shaderForCubes;
80 std::shared_ptr<ge::Shader> shaderForPlanes;
81 std::shared_ptr<ge::Shader> shaderForPlanets;
82 std::shared_ptr<ge::Shader> shaderForNightPlanets;
83 std::shared_ptr<ge::Shader> shaderForDebug;
84 std::shared_ptr<ge::Shader> shaderForAtmospheres;
85 std::shared_ptr<ge::Shader> shaderForSuns;
86 std::shared_ptr<ge::Shader> shaderForStellar;
93 std::shared_ptr<at::AtmosphereShell> tropoSphere;
94 std::shared_ptr<at::AtmosphereShell> stratoSphere;
95 std::shared_ptr<at::AtmosphereShell> mesoSphere;
96 std::shared_ptr<at::AtmosphereShell> thermoSphere;
97 std::shared_ptr<at::AtmosphereShell> exoSphere;
100 vmml::Vector3f camOffset;
105 float scaleAdjustment;
106 float rotationalSpeed;
108 float rotationAmount;
112 GLint uniformHighRed;
114 GLint uniformLowGreen;
116 GLint uniformHighGreen;
118 GLint uniformLowBlue;
120 GLint uniformHighBlue;
123 GLint uniformSelectedLayer;
124 int selectedAtmosphereLayer;
125 bool selectedLayerVisible;
133 std::vector<at::Sun*> sunEnvironment;
134 std::vector< std::shared_ptr<at::AtmosphereShell> > atmosphereEnvironment;
136 std::string projectSourcePath;
138 std::shared_ptr<ge::Texture2Drgba> whitetex;
139 std::shared_ptr<ge::Texture2Drgba> stellartex;
int changeLayerDownwards()
Definition: AtmosphereEngine.cpp:503
std::string getChemical()
Definition: AtmosphereEngine.cpp:474
AtmosphereEngine()
Definition: AtmosphereEngine.cpp:11
Definition: MemoryState.h:16
void create()
Definition: AtmosphereEngine.cpp:63
void drawScene()
Definition: AtmosphereEngine.cpp:264
Definition: DebugMap.h:18
Definition: DebugLogger.h:22
void resetCamera()
Definition: AtmosphereEngine.cpp:586
std::string getAtmosphereInfo()
Definition: AtmosphereEngine.cpp:571
bool addLayer(int innerRadius_, int outerRadius_, double density_, bool earthDensity_)
Definition: AtmosphereEngine.cpp:451
double getRadius()
Definition: AtmosphereEngine.cpp:460
void updateAtmosphereShader()
Definition: AtmosphereEngine.cpp:368
void moveCam(vmml::Vector3f _movement)
Definition: AtmosphereEngine.cpp:364
void resize(int _w, int _h)
Definition: AtmosphereEngine.cpp:345
void update()
Definition: AtmosphereEngine.cpp:260
void setChemical(std::string chemical_)
Definition: AtmosphereEngine.cpp:564
double getDensity()
Definition: AtmosphereEngine.cpp:467
Definition: AtmosphereEngine.h:39
vmml::Vector3f calculateCyclePosition(vmml::Vector3f _position)
Definition: AtmosphereEngine.cpp:351
Definition: AtmosphereComposition.h:20
Definition: SceneStateSet.h:41
void setDensity(double density_)
Definition: AtmosphereEngine.cpp:557
int enableDisableLayer(bool change_)
Definition: AtmosphereEngine.cpp:535
void deleteLayer()
Definition: AtmosphereEngine.cpp:527
~AtmosphereEngine()
Definition: AtmosphereEngine.cpp:30
bool setSpectrum(int lowRed_, int highRed_, int lowGreen_, int highGreen_, int lowBlue_, int highBlue_)
Definition: AtmosphereEngine.cpp:436
void destroy()
Definition: AtmosphereEngine.cpp:53
Definition: CoordinateSystem.h:17
void clear()
Definition: AtmosphereEngine.cpp:36
void changeLayerVisual(bool b)
Definition: AtmosphereEngine.cpp:522
void interpretTristate(int s1_, int s2_, int s3_)
Definition: AtmosphereEngine.cpp:396
int changeLayerUpwards()
Definition: AtmosphereEngine.cpp:483
void initializeScene(std::string _projectsrcPath=0)
Definition: AtmosphereEngine.cpp:68