mirror of https://github.com/mosra/magnum.git
3 changed files with 123 additions and 0 deletions
@ -0,0 +1,104 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
|
||||
<!-- |
||||
This file is part of Magnum. |
||||
|
||||
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, |
||||
2020, 2021, 2022, 2023 Vladimír Vondruš <mosra@centrum.cz> |
||||
Copyright © 2021 Jonathan Hale <squareys@googlemail.com> |
||||
Copyright © 2023 Pablo Escobar <mail@rvrs.in> |
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a |
||||
copy of this software and associated documentation files (the "Software"), |
||||
to deal in the Software without restriction, including without limitation |
||||
the rights to use, copy, modify, merge, publish, distribute, sublicense, |
||||
and/or sell copies of the Software, and to permit persons to whom the |
||||
Software is furnished to do so, subject to the following conditions: |
||||
|
||||
The above copyright notice and this permission notice shall be included |
||||
in all copies or substantial portions of the Software. |
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
||||
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
||||
DEALINGS IN THE SOFTWARE. |
||||
--> |
||||
|
||||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> |
||||
<!-- Math::Range --> |
||||
<Type Name="Magnum::Math::Range<*>"> |
||||
<DisplayString IncludeView="simple">[{_min,g}, {_max,g}]</DisplayString> |
||||
<DisplayString ExcludeView="simple">{{ min={_min,g} max={_max,g} }}</DisplayString> |
||||
</Type> |
||||
<!-- Math::Vector2 --> |
||||
<Type Name="Magnum::Math::Vector<2,*>"> |
||||
<DisplayString IncludeView="simple">{{ {_data[0],g}, {_data[1],g} }}</DisplayString> |
||||
<DisplayString ExcludeView="simple">{{ x={_data[0],g} y={_data[1],g} }}</DisplayString> |
||||
</Type> |
||||
<!-- Math::Vector3 --> |
||||
<Type Name="Magnum::Math::Vector<3,*>"> |
||||
<DisplayString IncludeView="simple">{{ {_data[0],g}, {_data[1],g}, {_data[2],g} }}</DisplayString> |
||||
<DisplayString ExcludeView="simple">{{ x={_data[0],g} y={_data[1],g} z={_data[2],g} }}</DisplayString> |
||||
</Type> |
||||
<!-- Math::Vector4 --> |
||||
<Type Name="Magnum::Math::Vector<4,*>"> |
||||
<DisplayString IncludeView="simple">{{ {_data[0],g}, {_data[1],g}, {_data[2],g}, {_data[3],g} }}</DisplayString> |
||||
<DisplayString ExcludeView="simple">{{ x={_data[0],g} y={_data[1],g} z={_data[2],g} w={_data[3],g} }}</DisplayString> |
||||
</Type> |
||||
<!-- Math::BitVector2 --> |
||||
<Type Name="Magnum::Math::BitVector<2>"> |
||||
<Intrinsic Name="at" Category="Method" Expression="(bool)((_data[0] >> i) & 1)"> |
||||
<Parameter Name="i" Type="int" /> |
||||
</Intrinsic> |
||||
<DisplayString>{{ {at(0)}, {at(1)} }}</DisplayString> |
||||
</Type> |
||||
<!-- Math::BitVector3 --> |
||||
<Type Name="Magnum::Math::BitVector<3>"> |
||||
<Intrinsic Name="at" Category="Method" Expression="(bool)((_data[0] >> i) & 1)"> |
||||
<Parameter Name="i" Type="int" /> |
||||
</Intrinsic> |
||||
<DisplayString>{{ {at(0)}, {at(1)}, {at(2)} }}</DisplayString> |
||||
</Type> |
||||
<!-- Math::BitVector4 --> |
||||
<Type Name="Magnum::Math::BitVector<4>"> |
||||
<Intrinsic Name="at" Category="Method" Expression="(bool)((_data[0] >> i) & 1)"> |
||||
<Parameter Name="i" Type="int" /> |
||||
</Intrinsic> |
||||
<DisplayString>{{ {at(0)}, {at(1)}, {at(2)}, {at(3)} }}</DisplayString> |
||||
</Type> |
||||
<!-- Math::Color3 --> |
||||
<Type Name="Magnum::Math::Color3<*>"> |
||||
<DisplayString IncludeView="simple">{{ {_data[0],g}, {_data[1],g}, {_data[2],g} }}</DisplayString> |
||||
<DisplayString ExcludeView="simple">{{ r={_data[0],g} g={_data[1],g} b={_data[2],g} }}</DisplayString> |
||||
</Type> |
||||
<!-- Math::Color4 --> |
||||
<Type Name="Magnum::Math::Color4<*>"> |
||||
<DisplayString IncludeView="simple">{{ {_data[0],g}, {_data[1],g}, {_data[2],g}, {_data[3],g} }}</DisplayString> |
||||
<DisplayString ExcludeView="simple">{{ r={_data[0],g} g={_data[1],g} b={_data[2],g} a={_data[3],g} }}</DisplayString> |
||||
</Type> |
||||
<!-- Math::ColorHsv --> |
||||
<Type Name="Magnum::Math::ColorHsv<*>"> |
||||
<DisplayString IncludeView="simple">{{ {hue._value,g}, {saturation,g}, {value,g} }}</DisplayString> |
||||
<DisplayString ExcludeView="simple">{{ h={hue._value,g} s={saturation,g} v={value,g} }}</DisplayString> |
||||
</Type> |
||||
<!-- Math::Quaternion --> |
||||
<Type Name="Magnum::Math::Quaternion<*>"> |
||||
<DisplayString IncludeView="simple">{{ {_vector._data[0],g}, {_vector._data[1],g}, {_vector._data[2],g}, {_scalar,g} }}</DisplayString> |
||||
<DisplayString ExcludeView="simple">{{ x={_vector._data[0],g} y={_vector._data[1],g} z={_vector._data[2],g} w={_scalar,g} }}</DisplayString> |
||||
</Type> |
||||
<!-- Math::RectangularMatrix --> |
||||
<Type Name="Magnum::Math::RectangularMatrix<*>"> |
||||
<DisplayString>{($T3 *)_data,[$T1*$T2]nag}</DisplayString> |
||||
<Expand> |
||||
<ArrayItems> |
||||
<Direction>Forward</Direction> |
||||
<Rank>2</Rank> |
||||
<Size>$i == 0 ? $T1 : $T2</Size> |
||||
<ValuePointer>($T3 *)_data</ValuePointer> |
||||
</ArrayItems> |
||||
</Expand> |
||||
</Type> |
||||
</AutoVisualizer> |
||||
Loading…
Reference in new issue