mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-03 14:34:34 +00:00
Add RenderState to be passed through the scene graph
This will eventually handle all mutable state during rendering
This commit is contained in:
parent
b6c5d90d3a
commit
68b3c61852
57 changed files with 201 additions and 150 deletions
|
@ -101,7 +101,7 @@ void RoundedRect::onUpdate(float dt)
|
|||
}
|
||||
}
|
||||
|
||||
void RoundedRect::onRender() const
|
||||
void RoundedRect::onRender(const RenderState& rs) const
|
||||
{
|
||||
|
||||
int w2 = width/2;
|
||||
|
@ -257,7 +257,7 @@ void RoundButton::onUpdate(float dt)
|
|||
}
|
||||
}
|
||||
|
||||
void RoundButton::onRender() const
|
||||
void RoundButton::onRender(const RenderState& rs) const
|
||||
{
|
||||
int w2 = width/2, h2 = height/2;
|
||||
glLineWidth(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue