Karma Engine
Loading...
Searching...
No Matches
SkeletalMesh.h
1#pragma once
2
3#include "krpch.h"
4
5#include "Mesh.h"
6
7namespace Karma
8{
9 struct BoneInfo
10 {
11 /* The index in u_FinalBonesMatrices. */
12 int m_Id;
13
14 /* The matrix transformation of vertices from model space to bone space. */
15 glm::mat4 m_ModelToBoneTransform; // corresponds to u_FinalBonesMatrices in the vertex shader
16 };
17
18 class KARMA_API SkeletalMesh : public Mesh
19 {
20 public:
21 SkeletalMesh(std::shared_ptr<VertexBuffer> vertexBuffer, std::shared_ptr<IndexBuffer> indexBuffer, const std::string& meshName = "NoName");
22
23 virtual void ProcessMesh(aiMesh* meshToProcess) override;
24 };
25}
Definition Mesh.h:30
Definition SkeletalMesh.h:19
Definition SkeletalMesh.h:10