Added clear rect test.

This commit is contained in:
Branimir Karadžić 2023-06-23 20:17:48 -07:00
parent 5ae4386bf0
commit 75fc6aeb4a

View File

@ -738,7 +738,10 @@ public:
;
bgfx::setViewClear(viewId, BGFX_CLEAR_COLOR, colorRGB8);
bgfx::setViewRect(viewId, 0,0,512,512);
const float maxBorder = 64.0f;
const uint16_t border = uint16_t(bx::abs(bx::sin(time * 4.0f)*0.5f+0.5f)*maxBorder);
bgfx::setViewRect(viewId, border, border, 512-border*2, 512-border*2);
bgfx::touch(viewId);
}