Skip to content
Snippets Groups Projects
Commit fb6b4fbc authored by JM's avatar JM
Browse files

merge

parent 426c5804
Branches
Tags v1.0.4
No related merge requests found
......@@ -44,7 +44,7 @@ bool draw_field_line(struct gfx_context_t *ctxt, charge_t *charges, int num_char
vec2 pos_sum;
for (int i = 0; i < num_charges; i++)
{
// compute_e(charges[i], ..., &pos_sum);
//compute_e(charges[i], ..., &pos_sum);
}
//vec2 pos_next =
......
......@@ -18,10 +18,10 @@ int main() {
draw_charges(ctxt, charges, NCHARGES, 0.0, 1.0, 0.0, 1.0);
//for (int i = 0; i < NPOINTS; ++i) {
// vec2 start = vec2_normalize(vec2_create(rand(), rand()));
// draw_field_line(ctxt, charges, NCHARGES, DX, start, 0.0, 1.0, 0.0, 1.0);
//}
for (int i = 0; i < NPOINTS; ++i) {
vec2 start = vec2_normalize(vec2_create(rand(), rand()));
draw_field_line(ctxt, charges, NCHARGES, DX, start, 0.0, 1.0, 0.0, 1.0);
}
while (gfx_keypressed() != SDLK_ESCAPE) gfx_present(ctxt);
gfx_destroy(ctxt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment