From eebbdd012b0d156e9e92369585c6ad82ed3de371 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Wed, 4 Jan 2023 18:30:56 -0500 Subject: shapes; remove stencil buffer? --- src/include/my_math.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/include/my_math.h') diff --git a/src/include/my_math.h b/src/include/my_math.h index 92d43b7..865f11c 100644 --- a/src/include/my_math.h +++ b/src/include/my_math.h @@ -66,14 +66,8 @@ inline v2 V2(ImVec2 A) return(Result); } -inline ImVec2 V2(v2 A) -{ - struct ImVec2 Result; - - Result.x = A.x; - Result.y = A.y; - - return(Result); +inline ImVec2 ImVec2_(v2 f) { + return { f.x, f.y }; } inline v2i V2i(int32 x, int32 y) -- cgit v1.2.3