This is about understanding the glm source. I wanted to know if glm does zero initialise its classes and tried it. Yes,
are initialized, even without providing a constructor value. Then I wanted to understand how it is done and read the source of
There is this section:
GLM_FUNC_DECL tmat4x4(tmat4x4 const & m);
GLM_FUNC_DECL explicit tmat4x4(ctor Null);
I can read there is a
constructor (ctor) but without definition, so no
section. And there is an
as parameter coming from first element of type
, which of course gets index value
- Where are the constructor definitions? How can I find them?
- What is that explicit Null ctor for?
- How is
initialised to an identity matrix when I just write:
browsing the more current source files on GitHub brings one from
the implementation details in type_mat4x4.inl
. There the ctor behaviour gets visible.