MCPcopy Create free account
hub / github.com/InkboxSoftware/all-screen-keyboard / createColor

Method createColor

keyboard/src/shaders/graphics.cpp:723–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723window::color window::createColor(int r, int g, int b, int a){
724 color c;
725 c.r = static_cast<float>(r) / 255.0f;
726 c.g = static_cast<float>(g) / 255.0f;
727 c.b = static_cast<float>(b) / 255.0f;
728 c.a = static_cast<float>(a) / 255.0f;
729 return c;
730}
731
732int window::setFont(const char* fontName){
733 //check if file exists and is ttf

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected