Skip to content

Commit

Permalink
Started a concept for a im_draw_box function
Browse files Browse the repository at this point in the history
The goal is for this to replace the immediate::draw_box_wireframe function
  • Loading branch information
guser40 committed Jul 11, 2024
1 parent 5b1d008 commit f2ea3ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9140,3 +9140,10 @@ static void draw_representations_opaque_lean_and_mean(ApplicationState* data, ui

md_gl_draw(&args);
}

static void im_draw_box_wireframe(ImDrawList* draw_list, vec3_t min, vec3_t max, ImU32 col, float thickness = 1.0f) {
//draw_list->AddPolyline
//draw_list->AddLine
//Use either of these to draw the lines
//Figure out how to convert the vec3_t to ImVec2 in screen space
}

0 comments on commit f2ea3ec

Please sign in to comment.