现在才是代码完成。
This commit is contained in:
+7
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user