Cleanup: style
This commit is contained in:
parent
fbcb920748
commit
3b6eaf8d96
@ -87,8 +87,7 @@ static void imm_draw_circle(PrimitiveType prim_type, unsigned pos, float x, floa
|
||||
immBegin(prim_type, nsegments);
|
||||
for (int i = 0; i < nsegments; ++i) {
|
||||
float angle = 2 * M_PI * ((float)i / (float)nsegments);
|
||||
immVertex2f(pos, x + rad * cosf(angle),
|
||||
y + rad * sinf(angle));
|
||||
immVertex2f(pos, x + rad * cosf(angle), y + rad * sinf(angle));
|
||||
}
|
||||
immEnd();
|
||||
}
|
||||
@ -140,8 +139,7 @@ void imm_draw_lined_circle_3D(unsigned pos, float x, float y, float rad, int nse
|
||||
immBegin(PRIM_LINE_LOOP, nsegments);
|
||||
for (int i = 0; i < nsegments; ++i) {
|
||||
float angle = 2 * M_PI * ((float)i / (float)nsegments);
|
||||
immVertex3f(pos, x + rad * cosf(angle),
|
||||
y + rad * sinf(angle), 0.0f);
|
||||
immVertex3f(pos, x + rad * cosf(angle), y + rad * sinf(angle), 0.0f);
|
||||
}
|
||||
immEnd();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user