This commit is contained in:
20
include/components/camera.hpp
Normal file
20
include/components/camera.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <glm/ext/scalar_constants.hpp> // glm::pi
|
||||
|
||||
#include <glm/vec3.hpp>
|
||||
|
||||
namespace kuiper
|
||||
{
|
||||
|
||||
namespace component
|
||||
{
|
||||
|
||||
struct camera_props {
|
||||
glm::vec3 euler {0.0f, -(glm::pi<float>() / 2.0f), (glm::pi<float>() / 2.0f)}; // looking down the -Z axis
|
||||
float fov = (glm::pi<float>() / 2.0f); // 90 degrees
|
||||
};
|
||||
|
||||
} // namespace component
|
||||
|
||||
} // namespace kuiper
|
||||
22
include/components/lights.hpp
Normal file
22
include/components/lights.hpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <glm/vec3.hpp>
|
||||
|
||||
namespace kuiper
|
||||
{
|
||||
|
||||
namespace component
|
||||
{
|
||||
|
||||
struct directional_light {
|
||||
glm::vec3 direction {0.0f, -1.0f, 0.0f}; // Initial points straight down
|
||||
};
|
||||
|
||||
struct point_light {
|
||||
glm::vec3 colour {1.0f, 1.0f, 1.0f};
|
||||
float intensity {1.0f};
|
||||
};
|
||||
|
||||
} // namespace component
|
||||
|
||||
} // namespace kuiper
|
||||
16
include/components/physics.hpp
Normal file
16
include/components/physics.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
namespace kuiper
|
||||
{
|
||||
|
||||
namespace component
|
||||
{
|
||||
|
||||
struct physics_props {
|
||||
float mass {0.0f};
|
||||
float velocity {0.0f};
|
||||
};
|
||||
|
||||
} // namespace component
|
||||
|
||||
} // namespace kuiper
|
||||
17
include/components/resources.hpp
Normal file
17
include/components/resources.hpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include "resources/resource_manager.hpp"
|
||||
|
||||
namespace kuiper
|
||||
{
|
||||
|
||||
namespace component
|
||||
{
|
||||
|
||||
struct model_resource {
|
||||
resource_id_t id {0};
|
||||
};
|
||||
|
||||
} // namespace component
|
||||
|
||||
} // namespace kuiper
|
||||
Reference in New Issue
Block a user