improved formatting
This commit is contained in:
parent
737ba58860
commit
ccdd081d36
12 changed files with 46 additions and 37 deletions
|
|
@ -40,7 +40,8 @@ Vector2 kubo_wall_get_vertex(struct kubo_wall *wall, size_t index) {
|
|||
return kubo_vector2_arr_get(&wall->vertices, index);
|
||||
}
|
||||
|
||||
void kubo_wall_render(struct kubo_wall *wall, bool select, Camera2D *camera, Vector2 mouse) {
|
||||
void kubo_wall_render(struct kubo_wall *wall, bool select, Camera2D *camera,
|
||||
Vector2 mouse) {
|
||||
(void)camera;
|
||||
Color wall_color =
|
||||
(select && wall->state == KUBO_WALL_SELECTED) ? BLUE : BLACK;
|
||||
|
|
@ -56,7 +57,7 @@ void kubo_wall_render(struct kubo_wall *wall, bool select, Camera2D *camera, Vec
|
|||
|
||||
if (wall->state == KUBO_WALL_DRAWING) {
|
||||
// Vector2 mouse = GetScreenToWorld2D(mouse, *camera);
|
||||
Vector2 mouse_points[] = {points[wall->vertices.count - 1], mouse};
|
||||
Vector2 mouse_points[] = { points[wall->vertices.count - 1], mouse };
|
||||
|
||||
DrawSplineLinear(mouse_points, 2, 10.f, wall_color);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue