Added clear rect test.
This commit is contained in:
parent
5ae4386bf0
commit
75fc6aeb4a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user