mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 08:42:45 +03:00
Merge branch 'master' into feat-gx-add-locked-vertex-drawing-functions
This commit is contained in:
commit
d99c685dd1
@ -192,6 +192,15 @@ CGxBuf* GxBufCreate(CGxPool* pool, uint32_t itemSize, uint32_t itemCount, uint32
|
|||||||
return g_theGxDevicePtr->BufCreate(pool, itemSize, itemCount, index);
|
return g_theGxDevicePtr->BufCreate(pool, itemSize, itemCount, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GxBufData(CGxBuf* buf, const void* data, uint32_t size, uint32_t offset) {
|
||||||
|
if (size == 0) {
|
||||||
|
size = buf->m_itemSize * buf->m_itemCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
g_theGxDevicePtr->BufData(buf, data, size, offset);
|
||||||
|
buf->unk1C = 1;
|
||||||
|
}
|
||||||
|
|
||||||
char* GxBufLock(CGxBuf* buf) {
|
char* GxBufLock(CGxBuf* buf) {
|
||||||
return g_theGxDevicePtr->BufLock(buf);
|
return g_theGxDevicePtr->BufLock(buf);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,6 +27,8 @@ uint32_t GxVertexAttribOffset(EGxVertexBufferFormat, EGxVertexAttrib);
|
|||||||
|
|
||||||
CGxBuf* GxBufCreate(CGxPool*, uint32_t, uint32_t, uint32_t);
|
CGxBuf* GxBufCreate(CGxPool*, uint32_t, uint32_t, uint32_t);
|
||||||
|
|
||||||
|
void GxBufData(CGxBuf* buf, const void* data, uint32_t size, uint32_t offset);
|
||||||
|
|
||||||
char* GxBufLock(CGxBuf* buf);
|
char* GxBufLock(CGxBuf* buf);
|
||||||
|
|
||||||
void GxBufUnlock(CGxBuf*, uint32_t);
|
void GxBufUnlock(CGxBuf*, uint32_t);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user