现在才是代码完成。

This commit is contained in:
xsl
2025-10-20 15:27:33 +08:00
parent d2da523636
commit e6a776665f
6 changed files with 323 additions and 167 deletions
+7 -4
View File
@@ -42,21 +42,23 @@ public:
static FaceApp* Get() { return faceIns; }
void update_face_vertex_buffer(float* pos, int pointCount);
virtual bool isInited() { return inited && faceAppInited; }
private:
glm::vec3 rotation = glm::vec3();
glm::vec3 camera_pos = glm::vec3();
private:
static FaceApp* faceIns;
VmaAllocator allocator = nullptr;
bool LoadOBJ(const std::string& filename,
std::vector<TextureLoadingVertexStructure>& vertices,
std::vector<uint32_t>& indices);
bool LoadOBJ(const std::string& filename,std::vector<TextureLoadingVertexStructure>& vertices, std::vector<uint32_t>& indices);
void createVmaAllocator();
void update_uniform_buffers();
void createVertexBuffer();
void uploadVertexData();
VkDescriptorPool descriptor_pool = VK_NULL_HANDLE;
void create_face_pipelines();
void setup_descriptor_pool();
void setup_descriptor_set_layout();
void setup_descriptor_set();
@@ -95,7 +97,8 @@ private:
void* uniform_buffer_mapped = nullptr; // 映射的内存指针
void createUniformBuffer();
Texture tex_demo0;
Texture tex_demo0 = {0};
bool faceAppInited = false;
};
#endif