浏览代码

Fix .natvis as structs renamed

Ken Hu 6 年之前
父节点
当前提交
3d9bec8d2b
共有 1 个文件被更改,包括 14 次插入18 次删除
  1. 14 18
      util/glm.natvis

+ 14 - 18
util/glm.natvis

@@ -1,17 +1,22 @@
 <?xml version="1.0" encoding="utf-8"?>
 
-<!-- GLM visualizers for Visual Studio 2012 -->
-<!-- Put them into My Documents/Visual Studio 2012/Visualizers/ -->
+<!-- GLM visualizers for Visual Studio -->
+<!-- Copy this file to -->
+<!-- %USERPROFILE%\Douments\Visual Studio 2019\Visualizers\ (replace '2019' when necessary) -->
+<!-- or -->
+<!-- %VSINSTALLDIR%\Common7\Packages\Debugger\Visualizers\ (requires admin access) -->
+<!-- See also https://docs.microsoft.com/en-us/visualstudio/debugger/create-custom-views-of-native-objects -->
 
 <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
-	<Type Name="glm::tvec1&lt;*&gt;">
+
+	<Type Name="glm::vec&lt;1,*&gt;">
 		<DisplayString>{x}</DisplayString>
 		<Expand>
 			<Item Name="x">x</Item>
 		</Expand>
 	</Type>
 
-	<Type Name="glm::tvec2&lt;*&gt;">
+	<Type Name="glm::vec&lt;2,*&gt;">
 		<DisplayString>{x}, {y}</DisplayString>
 		<Expand>
 			<Item Name="x">x</Item>
@@ -19,7 +24,7 @@
 		</Expand>
 	</Type>
 
-	<Type Name="glm::tvec3&lt;*&gt;">
+	<Type Name="glm::vec&lt;3,*&gt;">
 		<DisplayString>{x}, {y}, {z}</DisplayString>
 		<Expand>
 			<Item Name="x">x</Item>
@@ -28,7 +33,7 @@
 		</Expand>
 	</Type>
 
-	<Type Name="glm::tvec4&lt;*&gt;">
+	<Type Name="glm::vec&lt;4,*&gt;">
 		<DisplayString>{x}, {y}, {z}, {w}</DisplayString>
 		<Expand>
 			<Item Name="x">x</Item>
@@ -38,18 +43,8 @@
 		</Expand>
 	</Type>
 
-	<!--Type Name="glm::tmat4&lt;*&gt;">
-		<DisplayString>{value[0]}, {value[1]}, {value[2]}, {value[3]}</DisplayString>
-		<Expand>
-			<Item Name="[0]">value[0]</Item>
-			<Item Name="[1]">value[1]</Item>
-			<Item Name="[2]">value[2]</Item>
-			<Item Name="[3]">value[3]</Item>
-		</Expand>
-	</Type-->
-
-	<Type Name="glm::tquat&lt;*&gt;">
-		<DisplayString>({x}, {y}, {z}), {w}</DisplayString>
+	<Type Name="glm::qua&lt;*&gt;">
+		<DisplayString>{x}, {y}, {z}, {w}</DisplayString>
 		<Expand>
 			<Item Name="x">x</Item>
 			<Item Name="y">y</Item>
@@ -65,5 +60,6 @@
 			<Item Name="dual">dual</Item>
 		</Expand>
 	</Type>
+
 </AutoVisualizer>