-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLevelWnd.h
More file actions
61 lines (52 loc) · 1.4 KB
/
Copy pathLevelWnd.h
File metadata and controls
61 lines (52 loc) · 1.4 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
Copyright (c) 2024-2025 Toksisitee. All rights reserved.
This work is licensed under the terms of the MIT license.
For a copy, refer to license.md or https://opensource.org/licenses/MIT
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
*/
#pragma once
#include "WindowBase.h"
#include "Level.h"
class CLevelWnd : public CWindowBase {
public:
CLevelWnd( LPDIRECT3DDEVICE9 pd3dDevice, const std::string& sName ) : CWindowBase( pd3dDevice, sName )
{
Initialize( pd3dDevice );
}
void RenderBegin() override;
void Render() override;
void RenderEnd() override;
void OnPaletteChange() override {};
void Initialize( LPDIRECT3DDEVICE9 pd3dDevice ) override
{
m_pd3dDevice = pd3dDevice;
m_bHighRes = true;
m_bPointFiltering = true;
m_bRenderWater = true;
m_bRegenerate = true;
//m_fv2LightDir = { -0.6f, -0.6f };
m_fLightDirX = -0.6f;
m_fLightDirY = -0.6f;
m_uCliffTreshold = 10;
}
Assets::CLevel* GetAsset()
{
return &m_Level;
}
void Cleanup() override
{
}
private:
Assets::CLevel m_Level;
bool m_bHighRes;
bool m_bPointFiltering;
bool m_bRenderWater;
bool m_bRegenerate;
//fVec2 m_fv2LightDir;
float m_fLightDirX;
float m_fLightDirY;
uint16_t m_uCliffTreshold;
std::string m_sLevel;
};