Adding notes in commonly edited scripts to clarify where functions with // notes to know what the script does in better detail.

This commit is contained in:
Anemunt
2025-12-30 09:24:16 -05:00
parent 67e6ece953
commit ac1fab021c
11 changed files with 135 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
#include "Common.h"
#include "ModelLoader.h"
#pragma region Mesh Builder State
// Lightweight mesh editing state used by the MeshBuilder panel.
class MeshBuilder {
public:
@@ -11,7 +12,9 @@ public:
std::string loadedPath;
bool dirty = false;
int selectedVertex = -1;
#pragma endregion
#pragma region Mesh Builder API
bool load(const std::string& path, std::string& error);
bool save(const std::string& path, std::string& error);
void clear();
@@ -20,3 +23,4 @@ public:
// Add a new face defined by vertex indices (3 = triangle, 4 = quad fan).
bool addFace(const std::vector<uint32_t>& indices, std::string& error);
};
#pragma endregion