feat(gx): implement CGxDevice::BufData

This commit is contained in:
phaneron 2023-03-20 18:28:23 -04:00 committed by GitHub
parent 5ccf980c23
commit da23578002
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 0 deletions

View file

@ -117,6 +117,14 @@ int32_t CGxDeviceGLL::BufUnlock(CGxBuf* buf, uint32_t size) {
return this->IBufUnlock(buf);
}
void CGxDeviceGLL::BufData(CGxBuf* buf, const void* data, size_t size, uintptr_t offset) {
CGxDevice::BufData(buf, data, size, offset);
auto bufData = this->IBufLock(buf);
memcpy(&bufData[offset], data, size);
this->IBufUnlock(buf);
}
void CGxDeviceGLL::CapsWindowSize(CRect& rect) {
CRect windowRect = this->DeviceCurWindow();