Heavy buffer update, window update, object tracking

This commit is contained in:
NaifBanana
2026-10-11 13:32:47 -05:00
parent e76ef32c45
commit 06f261b793
16 changed files with 553 additions and 843 deletions
+16
View File
@@ -0,0 +1,16 @@
#include <NBGraphics/VertexData.hpp>
namespace nb {
VertexData::VertexData(
std::shared_ptr<Buffer> data_,
const std::vector<VertexAttribute>& attrs_
) : data(data_), attributes(attrs_) {}
VertexData::VertexData(
const ByteVector& data_,
const std::vector<VertexAttribute>& attrs_
) : data(std::make_shared<Buffer>(GL_ARRAY_BUFFER, data_)),
attributes(attrs_) {}
} // namespace nb