33#ifndef GL_BUFFER_IMPL_H_
34#define GL_BUFFER_IMPL_H_
46 gl46core::GLenum
_target{ gl46core::GL_NONE };
60 void readBytes(
size_t offsetInBytes,
size_t rangeInBytes, std::pair<bufferPtr, size_t> outData);
Rough around the edges Adapter pattern abstracting the actual rendering API and access to the GPU.
PROPERTY_R(BufferImplParams, params)
PROPERTY_R(GLUtil::GLMemory::Block, memoryBlock)
BufferLock writeOrClearBytes(size_t offsetInBytes, size_t rangeInBytes, const bufferPtr data, bool firstWrite=false)
virtual ~glBufferImpl() override
gl46core::GLuint _copyBufferTarget
void readBytes(size_t offsetInBytes, size_t rangeInBytes, std::pair< bufferPtr, size_t > outData)
Handle console commands that start with a forward slash.
constexpr gl46core::GLuint GL_NULL_HANDLE
Invalid object value. Used to compare handles and determine if they were properly created.
BufferParams _bufferParams
bool operator==(const BufferImplParams &other) const =default