Minor - Improves engine settings and sky sphere - V14.3.0
Refactors the Engine Settings window into a tabbed interface, enhancing usability. Updates the sky sphere implementation to use a configurable distance. Adjusts ImGui layout for better docking and window arrangement.
This commit is contained in:
@@ -451,7 +451,22 @@ public:
|
||||
*/
|
||||
std::map<std::string, std::shared_ptr<model_class>>& get_model_cache() { return g_model_cache; }
|
||||
|
||||
/**
|
||||
* Get the sky entity ID.
|
||||
* @return The sky entity ID as an integer.
|
||||
*/
|
||||
int get_sky_id() const { return sky_id_; }
|
||||
|
||||
/**
|
||||
* Set the sky entity size.
|
||||
* @return The sky entity size as a float.
|
||||
*/
|
||||
XMVECTOR get_sky_distance() const { return sky_distance_; };
|
||||
/**
|
||||
* Set the sky entity size.
|
||||
* @param distance The new sky entity size as a float.
|
||||
*/
|
||||
void set_sky_distance(XMVECTOR distance);
|
||||
|
||||
private:
|
||||
/**
|
||||
@@ -594,9 +609,10 @@ private :
|
||||
float speed_ = 0.1f; // speed for the demo spinning object
|
||||
std::vector<object*> imported_object_;
|
||||
int object_id_ = 0;
|
||||
//std::vector<object*> skybox_;
|
||||
|
||||
int sky_id_ = -1;
|
||||
std::shared_ptr<ecs::Entity> sky_entity_;
|
||||
XMVECTOR sky_distance_ = XMVectorSet(2.0f, 2.0f, 2.0f, 0.0f);
|
||||
|
||||
// ----------------------------------- //
|
||||
// ------------- LIGHTS -------------- //
|
||||
|
||||
Reference in New Issue
Block a user