summaryrefslogtreecommitdiff
path: root/src/include/my_math.h
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2023-01-04 18:30:56 -0500
committerFox Caminiti <fox@foxcam.net>2023-01-04 18:30:56 -0500
commiteebbdd012b0d156e9e92369585c6ad82ed3de371 (patch)
treebbaeec7569de49f68bf853158a95c095878cf825 /src/include/my_math.h
parenta37ea807e93886e6a6ebc22a878a5649e97f015a (diff)
shapes; remove stencil buffer?
Diffstat (limited to 'src/include/my_math.h')
-rw-r--r--src/include/my_math.h10
1 files changed, 2 insertions, 8 deletions
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)