Commit Graph

24 Commits

Author SHA1 Message Date
blat-blatnik
2cc2c3ae6e
Added features to the .natvis file
I've been using this natvis file in some personal projects that use GLM and I've found it to be very helpful when debugging GLM code.

vectors are displayed in the debugger like this:

glm::vec4 v(1, 2, 3, 4); // [1 2 3 4]

when expanding the view, the debugger will show each individual component, as well as the length of the vector, and hex RGBA code (for float vectors only), like this:

glm::vec4 v(0.5); // [0.5 0.5 0.5 0.5]

[len]   1
[rgba] #7F7F7F7F
x         0.5
y         0.5
z         0.5
w        0.5

Matrices are displayed in row major order when expanded in the debugger like this:

glm::mat4 m = glm::translate(glm::mat4(1), glm::vec3(1, 2, 3));
// [1 0 0 0] [0 1 0 0] [0 0 1 0] [1 2 3 1]

row 1   [1 0 0 1]
row 2   [0 1 0 2]
row 3   [0 0 1 3]
row 4   [0 0 0 1]
columns
  - col 1    [1 0 0 0]
  - col 2    [0 1 0 0]
  - col 3    [0 0 1 0]
  - col 4    [1 2 3 1]

Quaternions are displayed as: w + xi + yj + zk

glm::quat q(1, 2, 3, 4); // 1 + 2i + 3j + 4k

Dual quaternions are displayed as:

glm::dualquat dq(q, q); // [r: 1 + 2i + 3j + 4k] [d: 1 + 2i + 3j + 4k]
2020-04-17 00:35:24 +02:00
Ken Hu
3d9bec8d2b Fix .natvis as structs renamed 2019-06-18 00:04:55 +09:00
Christophe Riccio
e560ce01d4 Packaging with conan externally #758 2018-05-07 14:28:08 +02:00
dimitri
347e767ac4 Adaptation to latest conan version 2018-04-18 04:58:00 +02:00
dimitri
819039447c Update README.md 2017-07-25 12:07:56 +02:00
dimitri
bfdee5f201 Update README.md 2017-07-25 12:06:54 +02:00
dimitri
2f36000a4d Only exporting glm directory to export_source. 2017-07-25 06:15:31 +02:00
dimitri
2c617b45aa Corrected relative path. 2017-07-24 22:58:22 +02:00
dimitri
bb63aa9e9b Modifications suggested by conan team. 2017-07-24 07:17:37 +02:00
dimitri
37857b02fe Added conan packaging configuration. 2017-06-24 09:20:14 +02:00
Zbigniew Mandziejewicz
62a7daddcf Removed obsolete FindGLM 2015-03-30 01:39:27 +08:00
David J. Sankel
5ac752262a Don't show status message in 'FindGLM' if 'QUIET' option is set.
The 'QUIET' option of 'find_package' sets the 'GLM_FIND_QUIETLY' option.
This patch makes FindGLM suppress output when this is the case.
2015-02-26 11:12:02 -07:00
Christophe Riccio
1e0825028e Fixed Visual Studio natvis support for vec4 #288, Added Visual Studio natvis support for vec1, quat and dualqual types 2015-01-09 01:37:16 +01:00
Roger Leigh
a925120716 cmake: Install FindGLM 2014-04-15 10:26:28 +01:00
Christophe Riccio
bc9aaa4033 Fixed glm.natvis, issue #82 2013-05-16 13:49:54 +00:00
Christophe Riccio
5474e33d08 Clean up util files 2012-11-18 14:03:14 +01:00
Christophe Riccio
9e6a23aaed Merge branch 'master' of https://github.com/g-truc/glm into 0.9.4 2012-10-13 23:04:00 +02:00
Jonathan Lima
7d9c22094c Added debbugger visualizers for Visual Studio 2012.
Signed-off-by: Jonathan Lima <greenboxal@gmail.com>
2012-10-05 11:56:50 -03:00
Carsten Neumann
ed2f46f2fa make FindGLM.cmake more compliant with cmake module recommendations 2012-09-24 15:20:02 -05:00
Christophe Riccio
cd6ef26019 Updated user types 2011-07-11 01:51:23 +01:00
Christophe Riccio
8eaffbef5f Added FindGLM CMake module 2010-11-17 17:51:08 +00:00
Christophe Riccio
4062a0e305 Updated extenal templates 2010-11-07 23:53:42 +00:00
Christophe Riccio
8c6578d3a6 Added autoexp files for Visual Studio debugging 2010-10-04 14:46:24 +01:00
Christophe Riccio
7c7b1d0b3d Added GLM 0.8.4 2010-04-29 11:54:07 +01:00