mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-08 07:09:52 +00:00
render: remove one mutable hack, border color is now per-quad
This commit is contained in:
parent
e47d253945
commit
cfa5d45932
6 changed files with 65 additions and 50 deletions
|
@ -86,11 +86,11 @@ public:
|
|||
|
||||
char autoWidth, autoHeight; // char to save space
|
||||
|
||||
bool renderQuad, renderCenter;
|
||||
mutable bool renderBorder; // TODO: should be part of render state
|
||||
bool renderQuad, renderCenter, renderBorder;
|
||||
Vector texOff;
|
||||
|
||||
float borderAlpha;
|
||||
Vector renderBorderColor;
|
||||
Vector repeatToFillScale;
|
||||
|
||||
static void ResetGrid(Vector *dst, size_t w, size_t h);
|
||||
|
@ -113,14 +113,13 @@ protected:
|
|||
float drawGridTimeMultiplier;
|
||||
bool drawGridOut;
|
||||
|
||||
static Vector renderBorderColor;
|
||||
|
||||
void onSetTexture();
|
||||
void onRender(const RenderState& rs) const OVERRIDE;
|
||||
void onUpdate(float dt);
|
||||
private:
|
||||
bool doUpdateGrid;
|
||||
void initQuad();
|
||||
void _renderBorder(const RenderState& rs, Vector color, float borderalpha) const;
|
||||
};
|
||||
|
||||
class PauseQuad : public Quad
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue