From 934d4fd6bf0806479796a059248996fd14a0fdaa Mon Sep 17 00:00:00 2001 From: Jesse Talavera-Greenberg Date: Fri, 27 Nov 2015 17:35:11 -0500 Subject: [PATCH] Clean up disabling default initialization --- doc/doc.tex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/doc.tex b/doc/doc.tex index bb77c02d..5b84663d 100644 --- a/doc/doc.tex +++ b/doc/doc.tex @@ -503,6 +503,9 @@ void bar(MatT const & m) \subsection{Disabling Default Initialization} + +By default, the nullary (zero-argument) constructors of vectors and matrices initialize their components to zero, as demanded by the GLSL specification. Such behavior is reliable and convenient, but sometimes unnecessary. Disable it at compile time by defining \verb|GLM_FORCE_NO_CTOR_INIT|. + GLM's default behavior: \begin{cppcode} @@ -526,7 +529,7 @@ void foo() } \end{cppcode} -Alternatively, you can leave individual variables undefined like so: +Alternatively, individual variables may be left undefined like so: \begin{cppcode} #include