Clean up disabling default initialization

This commit is contained in:
Jesse Talavera-Greenberg 2015-11-27 17:35:11 -05:00
parent 4cebf2e874
commit 934d4fd6bf

View File

@ -503,6 +503,9 @@ void bar(MatT const & m)
\subsection{Disabling Default Initialization} \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: GLM's default behavior:
\begin{cppcode} \begin{cppcode}
@ -526,7 +529,7 @@ void foo()
} }
\end{cppcode} \end{cppcode}
Alternatively, you can leave individual variables undefined like so: Alternatively, individual variables may be left undefined like so:
\begin{cppcode} \begin{cppcode}
#include <glm/glm.hpp> #include <glm/glm.hpp>