mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-19 21:42:59 +01:00
Added clear rect test.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user