Patch - Sun Camera - V10.5.2
This commit is contained in:
25
enginecustom/src/inc/shader/master_shader.h
Normal file
25
enginecustom/src/inc/shader/master_shader.h
Normal 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"";
|
||||
|
||||
|
||||
};
|
||||
@@ -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
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user