mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(gx): implement scene clear in d3d backend
This commit is contained in:
parent
c0d256f0a0
commit
56b24bfb3c
3 changed files with 26 additions and 0 deletions
|
|
@ -1595,6 +1595,30 @@ void CGxDeviceD3d::PoolSizeSet(CGxPool* pool, uint32_t size) {
|
|||
// TODO
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::SceneClear(uint32_t mask, CImVector color) {
|
||||
CGxDevice::SceneClear(mask, color);
|
||||
|
||||
if (!this->m_context) {
|
||||
return;
|
||||
}
|
||||
|
||||
uint32_t flags = 0x0;
|
||||
if (mask & 0x1) {
|
||||
flags |= 0x1;
|
||||
}
|
||||
if (mask & 0x2) {
|
||||
flags |= 0x2;
|
||||
}
|
||||
|
||||
if (this->intF6C) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
D3DCOLOR d3dColor = color.b | (color.g | (color.r << 8) << 8);
|
||||
|
||||
this->m_d3dDevice->Clear(0, nullptr, flags, d3dColor, 1.0f, 0);
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::ScenePresent() {
|
||||
if (this->m_context) {
|
||||
CGxDevice::ScenePresent();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue