| 721 | } |
| 722 | |
| 723 | window::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 | |
| 732 | int window::setFont(const char* fontName){ |
| 733 | //check if file exists and is ttf |
nothing calls this directly
no outgoing calls
no test coverage detected