feat: connect geometry position to GLMesh

This commit is contained in:
parker
2025-07-02 13:37:40 +01:00
parent f1d825d513
commit d614c1998c
6 changed files with 68 additions and 15 deletions

View File

@@ -53,13 +53,19 @@ public:
// TODO:make this private (primitive friend classes only)
data_->push_back(value);
}
T getValue(uint pos)
std::vector<T> getData() const
{
return *data_;
}
T getValue(uint pos) const
{
// TODO:protect against invalid positions
// TODO: cast types
return data_->at(pos);
}
std::string getName()
std::string getName() const
{
return name_;
}