-
Notifications
You must be signed in to change notification settings - Fork 1
/
BlendedTerrainWindow3.h
41 lines (34 loc) · 1.14 KB
/
BlendedTerrainWindow3.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2022
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
// https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// Version: 6.0.2022.01.06
#pragma once
#include <Applications/Window3.h>
#include <Graphics/Texture2Effect.h>
#include "BlendedTerrainEffect.h"
#include "ImGuiGTE/ImGuiWindow3.h"
using namespace gte;
class BlendedTerrainWindow3 : public ImGuiWindow3
{
public:
BlendedTerrainWindow3(Parameters& parameters);
virtual void OnIdle() override;
virtual bool OnCharPress(uint8_t key, int32_t x, int32_t y) override;
std::shared_ptr<gte::GraphicsEngine> GetEngine() const
{
return mEngine;
}
private:
bool SetEnvironment();
bool CreateTerrain();
void CreateSkyDome();
void Update();
std::shared_ptr<Visual> mTerrain;
std::shared_ptr<Visual> mSkyDome;
std::shared_ptr<RasterizerState> mWireState;
std::shared_ptr<BlendedTerrainEffect> mTerrainEffect;
std::shared_ptr<Texture2Effect> mSkyDomeEffect;
float mFlowDelta, mPowerDelta, mZAngle, mZDeltaAngle;
};