simplify point shader in preparation for #196
This commit is contained in:
@@ -13,8 +13,8 @@ public:
|
||||
|
||||
void setImage(int32_t image);
|
||||
void setColor(const std::array<float, 4>& color);
|
||||
void setPointTopLeft(const std::array<float, 2>& point_tl);
|
||||
void setPointBottomRight(const std::array<float, 2>& point_br);
|
||||
void setPosition(const std::array<float, 2>& pos);
|
||||
void setDimension(const std::array<float, 2>& dimension);
|
||||
void setSize(float size);
|
||||
|
||||
private:
|
||||
@@ -26,11 +26,11 @@ private:
|
||||
std::array<float, 4> color = {{}};
|
||||
int32_t u_color = -1;
|
||||
|
||||
std::array<float, 2> point_tl = {{}};
|
||||
int32_t u_point_tl = -1;
|
||||
std::array<float, 2> pos = {{}};
|
||||
int32_t u_pos = -1;
|
||||
|
||||
std::array<float, 2> point_br = {{}};
|
||||
int32_t u_point_br = -1;
|
||||
std::array<float, 2> dimension = {{}};
|
||||
int32_t u_dimension = -1;
|
||||
|
||||
float size = 0;
|
||||
int32_t u_size = -1;
|
||||
|
||||
Reference in New Issue
Block a user