initial commit

This commit is contained in:
Confideo-IOM
2026-07-17 15:30:29 +01:00
commit 7e8ec5a825
416 changed files with 40308 additions and 0 deletions
@@ -0,0 +1,14 @@
#ifndef HYDRAECSLIGHTCOMPONENT
#define HYDRAECSLIGHTCOMPONENT
#include "../../engine/HydraEngine.h"
struct HydraLightComponent
{
glm::vec4 light_colour;
float light_intensity;
HydraID entity_id;
uint32_t light_type;
float padding[1];
};
#endif /* HYDRAECSLIGHTCOMPONENT */
@@ -0,0 +1,11 @@
#ifndef HYDRAECSMATERIALCOMPONENT
#define HYDRAECSMATERIALCOMPONENT
#include "../../engine/HydraEngine.h"
struct HydraMaterialComponent
{
HydraID material_id = INVALID_HYDRA_ID;
};
#endif /* HYDRAECSMATERIALCOMPONENT */
@@ -0,0 +1,17 @@
#ifndef HYDRAECSMESHCOMPONENT
#define HYDRAECSMESHCOMPONENT
#include "../../engine/HydraObject.h"
struct HydraMeshComponent
{
HydraID mesh_id = INVALID_HYDRA_ID;
HydraID vertex_buffer_id = INVALID_HYDRA_ID;
HYDRA_STATE mesh_state = HYDRA_STATE::Empty;
};
#endif /* HYDRAECSMESHCOMPONENT */
@@ -0,0 +1,18 @@
#ifndef HYDRAECSPHYSICSCOMPONENT
#define HYDRAECSPHYSICSCOMPONENT
#include "../engine/HydraEngine.h"
//#include "../physics/HydraPhysicsDefinition.h"
struct HydraPhysicsComponent
{
//
HYDRA_STATE physics_state = HYDRA_STATE::Empty;
// HydraPhysicsDefinitionStruct physics_definition;
};
#endif /* HYDRAECSPHYSICSCOMPONENT */
@@ -0,0 +1,16 @@
#ifndef HYDRAECSPOSITIONCOMPONENT
#define HYDRAECSPOSITIONCOMPONENT
struct HydraPositionComponent
{
glm::dvec3 position = {};
glm::vec3 orientation = {};
glm::vec3 scale = {1,1,1};
glm::vec3 velocity = {};
glm::mat4 transform = glm::mat4(1);
glm::mat4 parent_transform = glm::mat4(1);
bool needs_update = true;
};
#endif /* HYDRAECSPOSITIONCOMPONENT */
@@ -0,0 +1,10 @@
#ifndef HYDRAECSRENDERABLECOMPONENT
#define HYDRAECSRENDERABLECOMPONENT
#include "../../engine/HydraEngine.h"
struct HydraRenderableComponent
{
HydraSignature renderable_types;
};
#endif /* HYDRAECSRENDERABLECOMPONENT */
@@ -0,0 +1,18 @@
#ifndef HYDRAECSSHADOWCOMPONENT
#define HYDRAECSSHADOWCOMPONENT
//#include "../helper/VulkanHelper.h"
//#include "../buffer/HydraShadowMapTransform.h"
struct HydrahadowComponent
{
// HydraID shadow_map_id; //4
// HydraID shadow_map_index; //8
// float padding0; //12
// float padding1; //16
// HydraShadowMapTransform shadow_transforms[6]; //880 (144*6)
// float padding[20]; //960
};
#endif /* HYDRAECSSHADOWCOMPONENT */
@@ -0,0 +1,11 @@
#ifndef HYDRATEXTURECOMPONENT
#define HYDRATEXTURECOMPONENT
#include "../engine/HydraEngine.h"
struct HydraTextureComponent
{
HydraID diffuse_texture_id = INVALID_HYDRA_ID;
};
#endif /* HYDRATEXTURECOMPONENT */