Skip to content

Instantly share code, notes, and snippets.

@hyperlogic
Created July 16, 2015 18:48
Show Gist options
  • Save hyperlogic/f9b391366f2db9a86d29 to your computer and use it in GitHub Desktop.
Save hyperlogic/f9b391366f2db9a86d29 to your computer and use it in GitHub Desktop.
Visual Studio Debugger Pretty Print for glm types
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!-- Place this into your "\My Documents\Visual Studio 2012\Visualizers\" folder -->
<Type Name="glm::detail::tvec3&lt;*&gt;">
<DisplayString>({x}, {y}, {z})</DisplayString>
<Expand>
<Item Name="x">x</Item>
<Item Name="y">y</Item>
<Item Name="z">z</Item>
</Expand>
</Type>
<Type Name="glm::detail::tvec4&lt;*&gt;">
<DisplayString>({x}, {y}, {z}, {w})</DisplayString>
<Expand>
<Item Name="x">x</Item>
<Item Name="y">y</Item>
<Item Name="z">z</Item>
<Item Name="w">w</Item>
</Expand>
</Type>
<Type Name="glm::detail::tquat&lt;*&gt;">
<DisplayString>({x}, {y}, {z}, {w})</DisplayString>
<Expand>
<Item Name="x">x</Item>
<Item Name="y">y</Item>
<Item Name="z">z</Item>
<Item Name="w">w</Item>
</Expand>
</Type>
<Type Name="glm::detail::tmat4x4&lt;*&gt;">
<DisplayString>mat4</DisplayString>
<Expand>
<Item Name="col0">value[0]</Item>
<Item Name="col1">value[1]</Item>
<Item Name="col2">value[2]</Item>
<Item Name="col3">value[3]</Item>
</Expand>
</Type>
</AutoVisualizer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment