mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-08 09:47:26 +00:00
Apply menu elements defaults
This commit is contained in:
21
src/ObjLoading/Parsing/Menu/Domain/CommonMenuTypes.cpp
Normal file
21
src/ObjLoading/Parsing/Menu/Domain/CommonMenuTypes.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "CommonMenuTypes.h"
|
||||
|
||||
using namespace menu;
|
||||
|
||||
CommonColor::CommonColor()
|
||||
: array{}
|
||||
{
|
||||
r = 0.0;
|
||||
g = 0.0;
|
||||
b = 0.0;
|
||||
a = 0.0;
|
||||
}
|
||||
|
||||
CommonColor::CommonColor(const double r, const double g, const double b, const double a)
|
||||
: array{}
|
||||
{
|
||||
this->r = r;
|
||||
this->g = g;
|
||||
this->b = b;
|
||||
this->a = a;
|
||||
}
|
@@ -12,6 +12,9 @@ namespace menu
|
||||
double a;
|
||||
};
|
||||
double array[4];
|
||||
|
||||
CommonColor();
|
||||
CommonColor(double r, double g, double b, double a);
|
||||
};
|
||||
|
||||
struct CommonRect
|
||||
|
Reference in New Issue
Block a user