mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-08 15:19:50 +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
|
@ -36,7 +36,7 @@ protected:
|
|||
int w, h, w2, h2;
|
||||
int lineSize;
|
||||
|
||||
void onRender() const OVERRIDE;
|
||||
void onRender(const RenderState& rs) const OVERRIDE;
|
||||
};
|
||||
|
||||
class Quad : public RenderObject
|
||||
|
@ -117,7 +117,7 @@ protected:
|
|||
static Vector renderBorderColor;
|
||||
|
||||
void onSetTexture();
|
||||
void onRender() const OVERRIDE;
|
||||
void onRender(const RenderState& rs) const OVERRIDE;
|
||||
void onUpdate(float dt);
|
||||
private:
|
||||
bool doUpdateGrid;
|
||||
|
@ -143,7 +143,7 @@ class CollideQuad : public Quad
|
|||
public:
|
||||
CollideQuad();
|
||||
virtual ~CollideQuad();
|
||||
virtual void renderCollision() const OVERRIDE;
|
||||
virtual void renderCollision(const RenderState& rs) const OVERRIDE;
|
||||
|
||||
float collideRadius;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue