Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dev/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ else()
endif()

add_custom_target(CopyHeader
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/olcPixelGameEngine3.h ${REPO_ROOT_DIR}/olcPixelGameEngine3.h
BYPRODUCTS ${REPO_ROOT_DIR}/olcPixelGameEngine3.h
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_BINARY_DIR}/olcPixelGameEngine3.h ${REPO_ROOT_DIR}/olcPixelGameEngine3.h
DEPENDS olcPixelGameEngine3.h
)

Expand Down
7 changes: 7 additions & 0 deletions dev/src/vector4d.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,13 @@ namespace olc
return lhs;
}

template<class TL, class TR>
inline constexpr auto operator -= (v_4d<TL>& lhs, const v_4d<TR>& rhs)
{
lhs = lhs - rhs;
return lhs;
}

// Greater/Less-Than Operator overloads - mathematically useless, but handy for "sorted" container storage
template<class TL, class TR>
inline constexpr bool operator < (const v_4d<TL>& lhs, const v_4d<TR>& rhs)
Expand Down
7 changes: 7 additions & 0 deletions olcPixelGameEngine3.h
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,13 @@ namespace olc
return lhs;
}

template<class TL, class TR>
inline constexpr auto operator -= (v_4d<TL>& lhs, const v_4d<TR>& rhs)
{
lhs = lhs - rhs;
return lhs;
}

// Greater/Less-Than Operator overloads - mathematically useless, but handy for "sorted" container storage
template<class TL, class TR>
inline constexpr bool operator < (const v_4d<TL>& lhs, const v_4d<TR>& rhs)
Expand Down
Loading