| 42 | } |
| 43 | |
| 44 | void CanvasSetColor(unsigned char red, unsigned char green, unsigned char blue, Canvas* ptr) |
| 45 | { |
| 46 | if(!ptr) |
| 47 | { |
| 48 | nullcThrowError("ERROR: Canvas object is nullptr"); |
| 49 | return; |
| 50 | } |
| 51 | ptr->color[0] = red / 255.0f; |
| 52 | ptr->color[1] = green / 255.0f; |
| 53 | ptr->color[2] = blue / 255.0f; |
| 54 | ptr->color[3] = 1.0f; |
| 55 | } |
| 56 | void CanvasSetAA(bool set, Canvas* ptr) |
| 57 | { |
| 58 | if(!ptr) |
nothing calls this directly
no test coverage detected