Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OneLoneCoder/olcPixelGameEngine
/ Clear
Method
Clear
extensions/olcPGEX_Shaders.h:755–759 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
753
754
755
void Shade::Clear(const olc::Pixel& p)
756
{
757
glClearColor(float(p.r) / 255.0f, float(p.g) / 255.0f, float(p.b) / 255.0f, float(p.a) / 255.0f);
758
glClear(GL_COLOR_BUFFER_BIT);
759
}
760
761
762
Callers
1
OnUserUpdate
Method · 0.45
Calls
no outgoing calls
Tested by
1
OnUserUpdate
Method · 0.36