Patch - Sun Camera - V10.5.2

This commit is contained in:
2025-05-26 13:52:00 +02:00
parent dbd27d1fe7
commit eb2cd17ec3
9 changed files with 156 additions and 246 deletions

View File

@@ -0,0 +1,25 @@
#pragma once
#include <d3d11.h>
#include <DirectXMath.h>
#include <string>
class master_shader
{
public :
master_shader();
master_shader(const master_shader& other) = delete;
virtual ~master_shader();
virtual bool initialize(ID3D11Device* device, HWND hwnd) = 0;
protected:
wchar_t vs_filename_[128], ps_filename_[128];
wchar_t const* vs_name_ = L"";
wchar_t const* ps_name_ = L"";
};

View File

@@ -231,6 +231,8 @@ private :
display_plane_class* display_plane_;
int screen_width_, screen_height_;
camera_class* camera_;
camera_class* sun_camera_;
camera_class* active_camera_;
position_class* position_;
int drawcalls_;
@@ -320,6 +322,7 @@ private :
// ------------------------------------------------- //
input inputs_;
bool tab_was_pressed_;
};
#endif

View File

@@ -50,10 +50,8 @@ public:
bool IsSPressed() const;
bool IsQPressed() const;
bool IsEPressed()const;
bool IsTildePressed() const;
bool IsTildeReleased() const;
bool IsKeyDown(unsigned int) const;
bool is_key_pressed(const unsigned int);
private:
bool m_keys[256];