Untitled Game engine no.5
1.0
|
1 #ifndef RENDERER_API_HPP
2 #define RENDERER_API_HPP
7 #include "RenderTag.hpp"
8 #include "MeshRenderer.hpp"
27 virtual void Init() = 0;
38 virtual void Clear() = 0;
43 virtual void AddTag(
const std::string& name,
RenderTag tag, ViewProjection projection = PROJECTION) = 0;
51 virtual void Flush() = 0;
virtual void SetClearColor(unsigned int c)=0
virtual void Flush()=0
Render all content in the render queue now!
virtual void Shutdown()=0
Shutdown the render api.
static Uni< Renderer > Create()
Create the render API.
Definition: Renderer.cpp:9
std::shared_ptr< T > Ref
Has stuff for making references a lot more easily shared smart pointer.
Definition: Base.hpp:21
virtual void Clear()=0
Clear the screen.
virtual void AddTag(const std::string &name, RenderTag tag, ViewProjection projection=PROJECTION)=0
Definition: RenderTag.hpp:31
API
Rendering system api enumeration.
Definition: Renderer.hpp:19
virtual void Submit(const std::string &tag, const Ref< Transform > &transform, const Ref< MeshRenderer > &renderer)=0
virtual void Init()=0
Initialize the render api.
static API GetAPI()
Get the current api we are using.
Definition: Renderer.hpp:54
Definition: Animation.hpp:14
std::unique_ptr< T > Uni
Has stuff for making references a lot more easily shared smart pointer representing a unique object.
Definition: Base.hpp:12
Definition: Renderer.hpp:15