| 54 | ptr->color[3] = 1.0f; |
| 55 | } |
| 56 | void CanvasSetAA(bool set, Canvas* ptr) |
| 57 | { |
| 58 | if(!ptr) |
| 59 | { |
| 60 | nullcThrowError("ERROR: Canvas object is nullptr"); |
| 61 | return; |
| 62 | } |
| 63 | ptr->aaEnabled = set; |
| 64 | } |
| 65 | |
| 66 | int abs(int x){ return x < 0 ? -x : x; } |
| 67 | void swap(int &a, int &b){ int tmp = a; a = b; b = tmp; } |
nothing calls this directly
no test coverage detected