Some questions on C++ syntax
Dear all,
I taking the opportunity of this section to ask for a general C++ syntax question.
I am a passionate C++ programmer who is enjoying using Oculus SDK examples to learn how to develop graphics (I'm not a professional, I do it in my spare time as hobby).
Reading lines of OculusRoomTiny demo (I learnt A LOT with it) I've noticed this syntax in function declarations:
what does the colon stands for? I know its usage for inherited classes but I've never noticed in function declarations.
Also a second question: I've found a lot of structures which contains a constructor (like Shader) are they classes?
Maybe these are trivial questions.. thanks in advance to all!
I taking the opportunity of this section to ask for a general C++ syntax question.
I am a passionate C++ programmer who is enjoying using Oculus SDK examples to learn how to develop graphics (I'm not a professional, I do it in my spare time as hobby).
Reading lines of OculusRoomTiny demo (I learnt A LOT with it) I've noticed this syntax in function declarations:
Shader(ID3D10Blob* s, int which_type) : numUniformInfo(0)
what does the colon stands for? I know its usage for inherited classes but I've never noticed in function declarations.
Also a second question: I've found a lot of structures which contains a constructor (like Shader) are they classes?
Maybe these are trivial questions.. thanks in advance to all!
