Fixed UI not rendering (partially)

This commit is contained in:
2023-05-31 09:30:21 -07:00
parent a51c5d0fc8
commit 4ae838945e
24 changed files with 110 additions and 73 deletions

View File

@ -4,17 +4,30 @@
// https://opensource.org/licenses/MIT
#pragma once
#include "display/shader/Shader.hpp"
#include "dawnlibs.hpp"
namespace Dawn {
class Scene;
class Camera;
class RenderPipeline;
struct IRenderableContext {
Scene *scene;
Camera *camera;
RenderPipeline *renderPipeline;
};
class IRenderable {
public:
/**
* Returns the render passes for this renderable item, typically a scene
* item component, e.g. a Material or a UI Item.
*
* @param context Context about the current renderer state.
* @return Array of renderable passes.
*/
virtual std::vector<struct ShaderPassItem> getRenderPasses() = 0;
virtual std::vector<struct ShaderPassItem> getRenderPasses(
struct IRenderableContext &context
) = 0;
};
}