Minor - bigcube generation + using shared model - V11.4.0
This commit is contained in:
@@ -13,7 +13,7 @@ public:
|
||||
|
||||
void Initialize(d_3d_class* d3dClassRef); // Get all the required references
|
||||
|
||||
object* ConstructSkybox();
|
||||
object* ConstructSkybox(application_class* app);
|
||||
|
||||
|
||||
// Variables
|
||||
|
||||
@@ -55,6 +55,8 @@ constexpr bool full_screen = false;
|
||||
constexpr float screen_depth = 1000.0f;
|
||||
constexpr float screen_near = 0.3f;
|
||||
|
||||
static std::map<std::string, std::shared_ptr<model_class>> g_model_cache;
|
||||
|
||||
struct input
|
||||
{
|
||||
bool key_left = false;
|
||||
@@ -79,8 +81,7 @@ public:
|
||||
render_texture_class* get_refraction_texture() const { return refraction_texture_; };
|
||||
render_texture_class* get_reflection_texture() const { return reflection_texture_; };
|
||||
|
||||
void create_big_cube(int side_count);
|
||||
void process_terrain_generation();
|
||||
bool create_big_cube(int side_count);
|
||||
virtual bool initialize(int, int, HWND, bool is_vulkan);
|
||||
void shutdown();
|
||||
virtual bool frame(input_class*);
|
||||
|
||||
@@ -29,6 +29,7 @@ enum class ShaderType
|
||||
class object
|
||||
{
|
||||
public:
|
||||
object(application_class& app);
|
||||
object();
|
||||
~object();
|
||||
|
||||
@@ -137,6 +138,9 @@ public :
|
||||
bool m_gravityEnabled = true;
|
||||
|
||||
private:
|
||||
|
||||
application_class& m_Application;
|
||||
|
||||
XMMATRIX m_scaleMatrix;
|
||||
XMMATRIX m_rotateMatrix;
|
||||
XMMATRIX m_translateMatrix;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "object.h"
|
||||
#include <intrin.h> // Pour __cpuid
|
||||
#include <dxgi.h> // Pour DXGI
|
||||
#include <mutex>
|
||||
#pragma comment(lib, "dxgi.lib")
|
||||
|
||||
class stats
|
||||
@@ -36,7 +37,6 @@ public:
|
||||
std::string get_gpu_driver_version(ID3D11Device* device);
|
||||
|
||||
private:
|
||||
std::thread update_geometric_thread_;
|
||||
std::thread update_display_thread_;
|
||||
|
||||
fps_class* fps_;
|
||||
|
||||
Reference in New Issue
Block a user