Heavy buffer update, window update, object tracking
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user