1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Default constructors.

This commit is contained in:
Sandu Liviu Catalin 2021-03-20 17:10:57 +02:00
parent 49eaedbb4b
commit f3eabd43f5

View File

@ -14,6 +14,10 @@ namespace SqMod {
*/ */
struct LgVector : public Vector3 struct LgVector : public Vector3
{ {
/* --------------------------------------------------------------------------------------------
* Default constructor.
*/
LgVector() = default;
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
* Copy constructor. * Copy constructor.
*/ */
@ -117,6 +121,10 @@ struct LgEntityVector : public LgVector
*/ */
struct LgQuaternion : public Quaternion struct LgQuaternion : public Quaternion
{ {
/* --------------------------------------------------------------------------------------------
* Default constructor.
*/
LgQuaternion() = default;
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
* Copy constructor. * Copy constructor.
*/ */
@ -230,6 +238,10 @@ struct LgEntityQuaternion : public LgQuaternion
*/ */
struct LgRGB : public Color3 struct LgRGB : public Color3
{ {
/* --------------------------------------------------------------------------------------------
* Default constructor.
*/
LgRGB() = default;
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
* Copy constructor. * Copy constructor.
*/ */
@ -249,6 +261,10 @@ struct LgRGB : public Color3
*/ */
struct LgRGBA : public Color4 struct LgRGBA : public Color4
{ {
/* --------------------------------------------------------------------------------------------
* Default constructor.
*/
LgRGBA() = default;
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
* Import from base class. * Import from base class.
*/ */
@ -262,11 +278,9 @@ struct LgRGBA : public Color4
struct LgARGB : public Color4 struct LgARGB : public Color4
{ {
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
* Import from base class. * Default constructor.
*/ */
using Color4::Color4; LgARGB() = default;
using Color4::operator =;
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
* Construct with individually specified alpha, red, green and blue colors. * Construct with individually specified alpha, red, green and blue colors.
*/ */
@ -274,6 +288,11 @@ struct LgARGB : public Color4
: Color4(rv, gv, bv, av) : Color4(rv, gv, bv, av)
{ {
} }
/* --------------------------------------------------------------------------------------------
* Import from base class.
*/
using Color4::Color4;
using Color4::operator =;
}; };
/* ------------------------------------------------------------------------------------------------ /* ------------------------------------------------------------------------------------------------