MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / add_line

Function add_line

deps/SDL2/test/testintersections.c:86–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84int num_lines = 0;
85SDL_Rect lines[MAX_LINES];
86static int
87add_line(int x1, int y1, int x2, int y2)
88{
89 if (num_lines >= MAX_LINES)
90 return 0;
91 if ((x1 == x2) && (y1 == y2))
92 return 0;
93
94 SDL_Log("adding line (%d, %d), (%d, %d)\n", x1, y1, x2, y2);
95 lines[num_lines].x = x1;
96 lines[num_lines].y = y1;
97 lines[num_lines].w = x2;
98 lines[num_lines].h = y2;
99
100 return ++num_lines;
101}
102
103
104void

Callers 1

loopFunction · 0.85

Calls 1

SDL_LogFunction · 0.85

Tested by

no test coverage detected