MCPcopy Create free account
hub / github.com/WheretIB/nullc / CanvasSetAA

Function CanvasSetAA

NULLC/includes/canvas.cpp:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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; }

Callers

nothing calls this directly

Calls 1

nullcThrowErrorFunction · 0.50

Tested by

no test coverage detected