|
template<class T > |
auto | playrho::d2::detail::Rotate (T &, const UnitVec &value) -> std::enable_if_t< IsValidShapeTypeV< T > &&!HasRotateV< T >, void > |
| Fallback rotate function that throws unless the given value has no effect.
|
|
template<class T > |
auto | playrho::d2::detail::Scale (T &, const Vec2 &value) -> std::enable_if_t< IsValidShapeTypeV< T > &&!HasScaleV< T >, void > |
| Fallback scale function that throws unless the given value has no effect.
|
|
template<class T > |
auto | playrho::d2::detail::SetDensity (T &o, NonNegative< AreaDensity > value) -> std::enable_if_t< IsValidShapeTypeV< T > &&!HasSetDensityV< T >, void > |
| Fallback density setter that throws unless given the same value as current.
|
|
template<class T > |
auto | playrho::d2::detail::SetFilter (T &o, Filter value) -> std::enable_if_t< IsValidShapeTypeV< T > &&!HasSetFilterV< T >, void > |
| Fallback filter setter that throws unless given the same value as current.
|
|
template<class T > |
auto | playrho::d2::detail::SetFriction (T &o, NonNegative< Real > value) -> std::enable_if_t< IsValidShapeTypeV< T > &&!HasSetFrictionV< T >, void > |
| Fallback friction setter that throws unless given the same value as current.
|
|
template<class T > |
auto | playrho::d2::detail::SetRestitution (T &o, Real value) -> std::enable_if_t< IsValidShapeTypeV< T > &&!HasSetRestitutionV< T >, void > |
| Fallback restitution setter that throws unless given the same value as current.
|
|
template<class T > |
auto | playrho::d2::detail::SetSensor (T &o, bool value) -> std::enable_if_t< IsValidShapeTypeV< T > &&!HasSetSensorV< T >, void > |
| Fallback sensor setter that throws unless given the same value as current.
|
|
template<class T > |
auto | playrho::d2::detail::Translate (T &, const Length2 &value) -> std::enable_if_t< IsValidShapeTypeV< T > &&!HasTranslateV< T >, void > |
| Fallback translate function that throws unless the given value has no effect.
|
|
|
template<class T > |
constexpr bool | playrho::d2::detail::HasRotateV = playrho::detail::is_detected_v<RotateReturnType, T> |
| Helper variable template on whether Rotate(T&, Angle) is found.
|
|
template<class T > |
constexpr bool | playrho::d2::detail::HasScaleV = playrho::detail::is_detected_v<ScaleReturnType, T> |
| Helper variable template on whether Scale(T&, Vec2) is found.
|
|
template<class T > |
constexpr bool | playrho::d2::detail::HasSetDensityV = playrho::detail::is_detected_v<SetDensityReturnType, T> |
| Helper variable template on whether SetDensity(T&, NonNegative<AreaDensity>) is found.
|
|
template<class T > |
constexpr bool | playrho::d2::detail::HasSetFilterV = playrho::detail::is_detected_v<SetFilterReturnType, T> |
| Helper variable template on whether SetFilter(T&, Filter) is found.
|
|
template<class T > |
constexpr bool | playrho::d2::detail::HasSetFrictionV = playrho::detail::is_detected_v<SetFrictionReturnType, T> |
| Helper variable template on whether SetFriction(T&, Real) is found.
|
|
template<class T > |
constexpr bool | playrho::d2::detail::HasSetRestitutionV = playrho::detail::is_detected_v<SetRestitutionReturnType, T> |
| Helper variable template on whether SetRestitution(T&, Real) is found.
|
|
template<class T > |
constexpr bool | playrho::d2::detail::HasSetSensorV = playrho::detail::is_detected_v<SetSensorReturnType, T> |
| Helper variable template on whether SetSensor(T&, bool) is found.
|
|
template<class T > |
constexpr bool | playrho::d2::detail::HasTranslateV = playrho::detail::is_detected_v<TranslateReturnType, T> |
| Helper variable template on whether Translate(T&, Length2) is found.
|
|
template<class T > |
constexpr bool | playrho::d2::detail::IsValidShapeTypeV = IsValidShapeType<T>::value |
| Boolean value for whether the specified type is a valid shape type. More...
|
|
Definition of the ShapeModel
class and related code.