working sockets

This commit is contained in:
Asuro
2025-05-11 22:32:50 +02:00
parent 1616704c50
commit 0d91ec1ebb
17 changed files with 252 additions and 43 deletions

View File

@@ -32,12 +32,23 @@ namespace Game
Gen::TextureHandle TexHandle;
};
struct ModelSocket
{
static constexpr uint16_t MaxSocketNameLength = 64;
Gen::Vec3 Pos;
Gen::Mat4 Rot;
char Name[MaxSocketNameLength]{};
};
struct Model
{
static constexpr uint16_t MaxSocketCount = 16;
bgfx::VertexBufferHandle VertexBuffer = {bgfx::kInvalidHandle};
bgfx::IndexBufferHandle IndexBuffer = {bgfx::kInvalidHandle};
bgfx::VertexLayout VertLayout;
Gen::ModelHandle Handle;
uint16_t SocketCount = 0;
ModelSocket Sockets[MaxSocketCount];
};
struct Material