This commit is contained in:
xsl
2025-09-27 22:17:10 +08:00
parent 4721726618
commit 3f7faff423
2 changed files with 208 additions and 17 deletions
@@ -205,9 +205,14 @@ public:
public:
void update_point_vertex_buffer(float* pos, int pointCount);
void update_face_vertex_buffer(float* pos, int pointCount);
void update_point_vertex_buffer_line(float* pos, int pointCount_line, float r, float g, float b, std::vector<LineVertex>& vertices);
void update_point_vertex_buffer_line_save(std::vector<LineVertex>& vertices);
bool LoadOBJ(const std::string& filename,std::vector<TextureLoadingVertexStructure>& vertices,std::vector<uint32_t>& indices);
private:
std::vector<TextureLoadingVertexStructure> obj_vertices;
std::vector<uint32_t> obj_indices;
std::thread workerThread;
bool running = false;