42 LogError(
"Resource does not exist.");
63 else if (copyType == Resource::COPY_BIDIRECTIONAL)
79 LogError(
"Resource has incorrect copy type.");
GL4Resource(Resource const *gtResource)
void *APIENTRY glMapBuffer(GLenum target, GLenum access)
bool PreparedForCopy(GLenum access) const
GLuint GLint GLboolean GLint GLenum access
void Unmap(GLenum target)
#define LogError(message)
void * MapForWrite(GLenum target)
void APIENTRY glBindBuffer(GLenum target, GLuint buffer)
Resource * GetResource() const
CopyType GetCopyType() const
GLboolean APIENTRY glUnmapBuffer(GLenum target)