SOPHIA_ASSERT

This commit is contained in:
2026-09-09 02:02:03 -07:00
parent 73d2121bc1
commit 9aef3f57fc
8 changed files with 57 additions and 26 deletions
+5 -2
View File
@@ -1,6 +1,7 @@
#pragma once
#include <memory>
#include <sophia/types.hpp>
#include <vector>
#define GLM_FORCE_RADIANS
@@ -14,6 +15,8 @@ namespace sophia {
class Mesh {
public:
using HandleType = MeshHandle;
struct Vertex {
glm::vec2 position{};
glm::vec3 color{};
@@ -46,8 +49,8 @@ class Mesh {
// static std::unique_ptr<Mesh> createMeshFromFile(
// Device& device, const std::string& filepath);
void bind(vk::CommandBuffer commandBuffer);
void draw(vk::CommandBuffer commandBuffer);
void bind(vk::CommandBuffer commandBuffer) const;
void draw(vk::CommandBuffer commandBuffer) const;
private:
void createVertexBuffers(const std::vector<Vertex>& vertices);