1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +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
{
/* --------------------------------------------------------------------------------------------
* Default constructor.
*/
LgVector() = default;
/* --------------------------------------------------------------------------------------------
* Copy constructor.
*/
@ -117,6 +121,10 @@ struct LgEntityVector : public LgVector
*/
struct LgQuaternion : public Quaternion
{
/* --------------------------------------------------------------------------------------------
* Default constructor.
*/
LgQuaternion() = default;
/* --------------------------------------------------------------------------------------------
* Copy constructor.
*/
@ -230,6 +238,10 @@ struct LgEntityQuaternion : public LgQuaternion
*/
struct LgRGB : public Color3
{
/* --------------------------------------------------------------------------------------------
* Default constructor.
*/
LgRGB() = default;
/* --------------------------------------------------------------------------------------------
* Copy constructor.
*/
@ -249,6 +261,10 @@ struct LgRGB : public Color3
*/
struct LgRGBA : public Color4
{
/* --------------------------------------------------------------------------------------------
* Default constructor.
*/
LgRGBA() = default;
/* --------------------------------------------------------------------------------------------
* Import from base class.
*/
@ -262,11 +278,9 @@ struct LgRGBA : public Color4
struct LgARGB : public Color4
{
/* --------------------------------------------------------------------------------------------
* Import from base class.
* Default constructor.
*/
using Color4::Color4;
using Color4::operator =;
LgARGB() = default;
/* --------------------------------------------------------------------------------------------
* Construct with individually specified alpha, red, green and blue colors.
*/
@ -274,6 +288,11 @@ struct LgARGB : public Color4
: Color4(rv, gv, bv, av)
{
}
/* --------------------------------------------------------------------------------------------
* Import from base class.
*/
using Color4::Color4;
using Color4::operator =;
};
/* ------------------------------------------------------------------------------------------------