diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-12-16 20:16:43 -0500 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-12-16 20:16:43 -0500 |
commit | bedd6906eabdd513042d6a178d4dc56a3a41d1d3 (patch) | |
tree | 2bcbd3e46ae61e583707a2ccc5b3f5cfeacb61a8 /imgui_ops.h | |
parent | cdb9e1f7240cb0716b7d99df5e1fd7c3fc3407a8 (diff) |
v3, file/build organization
Diffstat (limited to 'imgui_ops.h')
-rw-r--r-- | imgui_ops.h | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/imgui_ops.h b/imgui_ops.h deleted file mode 100644 index 6089f94..0000000 --- a/imgui_ops.h +++ /dev/null @@ -1,106 +0,0 @@ - - -ImVec2 operator+(ImVec2 A, ImVec2 B) -{ - ImVec2 Result; - - Result.x = A.x + B.x; - Result.y = A.y + B.y; - - return Result; -} - -ImVec2 operator+(ImVec2 A, int B) -{ - ImVec2 Result; - - Result.x = A.x + B; - Result.y = A.y + B; - - return Result; -} - -ImVec2 operator-(ImVec2 A, int B) -{ - ImVec2 Result; - - Result.x = A.x - B; - Result.y = A.y - B; - - return Result; -} - -ImVec2 operator-(ImVec2 A, ImVec2 B) -{ - ImVec2 Result; - - Result.x = A.x - B.x; - Result.y = A.y - B.y; - - return Result; -} - -ImVec2 operator*(ImVec2 A, real32 B) -{ - ImVec2 Result; - - Result.x = A.x * B; - Result.y = A.y * B; - - return Result; -} - -ImVec2 operator*(ImVec2 A, ImVec2 B) -{ - ImVec2 Result; - - Result.x = A.x * B.x; - Result.y = A.y * B.y; - - return Result; -} - -ImVec2 operator/(ImVec2 A, ImVec2 B) -{ - ImVec2 Result; - - Result.x = A.x / B.x; - Result.y = A.y / B.y; - - return Result; -} - -ImVec2 operator/(ImVec2 A, real32 B) -{ - ImVec2 Result; - - Result.x = A.x / B; - Result.y = A.y / B; - - return Result; -} - -ImVec2 operator/(real32 A, ImVec2 B) -{ - ImVec2 Result; - - Result.x = A / B.x; - Result.y = A / B.y; - - return Result; -} - -inline bool32 -IsRectTouching(ImVec2 Min1, ImVec2 Max1, ImVec2 Min2, ImVec2 Max2) -{ - bool32 Result = 0; - if ((Max1.x > Min2.x && Min1.x < Min2.x) && - (Max1.y > Min2.y && Min1.y < Min2.y)) - Result = 1; - // if ( - // Result = 1; - // if (Min1.x > Min2.x) - - return(Result); -} - |