FBX파일 읽기 로직 완성

This commit is contained in:
2025-05-18 19:23:30 +09:00
parent 45ee4f0056
commit 3a9dbcb470
5 changed files with 42 additions and 11 deletions

View File

@@ -39,6 +39,7 @@ class Graphics final {
BufferHandle CreateIndexBuffer(gsl::span<std::uint32_t> indices);
void DestroyBuffer(BufferHandle handle);
TextureHandle CreateTexture(gsl::czstring path);
TextureHandle CreateTexture(gsl::span<std::uint8_t> image_file_data);
void DestroyTexture(TextureHandle handle);
private:

12
include/vulkan/model.h Normal file
View File

@@ -0,0 +1,12 @@
#pragma once
#include <vector>
#include "vertex.h"
namespace veng {
struct Model {
std::vector<veng::Vertex> vertices;
std::vector<std::uint32_t> indices;
glm::mat4 transform;
};
} // namespace veng