Large OpenGL Object handling overhaul

This commit is contained in:
NaifBanana
2026-08-20 08:14:28 -05:00
parent bfe020c5c6
commit 3a097df594
17 changed files with 772 additions and 588 deletions
+16
View File
@@ -2,4 +2,20 @@
namespace nb {
using BufferErrorCodes = BufferError::Codes;
const std::string BufferError::type = "nb::BufferError";
const ErrorCodeMap BufferError::ErrorMessages = {
{ BufferErrorCodes::UNDEFINED, "Error" },
{ BufferErrorCodes::DATA_OVERFLOW, "Attempting buffer overflow" },
{ BufferErrorCodes::INVALID_BUFFER, "Attempting operation on invalid buffer" },
{BufferErrorCodes::HANDLE_OVERWRITE, "Attempting to overwrite active buffer"}
};
template<>
ArrayBuffer<false>::ArrayBuffer(const ByteVector& data_, GLenum usage_)
: BufferType() {
data(data_, usage_);
}
}