Fixed UI not rendering (partially)
This commit is contained in:
@ -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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user