Class Renderer
Defined in File renderer.h
Inheritance Relationships
Derived Type
public CE::Rendering::OpenGL::Renderer(Class Renderer)
Class Documentation
-
class Renderer
Renders using a compatible graphics context.
Does not own the display, presentation surface, resource provider, or mutable game state. render() consumes ordered passes from a published frame on the graphics thread. The operations below are backend primitives for the frame renderer. Borrowed frame/matrix inputs must remain stable through each call. The caller brackets native use with backend initialization/teardown and retains its context. A backend failure may leave native state changed or part of a frame drawn.
Subclassed by CE::Rendering::OpenGL::Renderer
Public Functions
-
virtual ~Renderer() = default
-
virtual void initialize() = 0
-
virtual void deinitialize() = 0
-
virtual void maintain_resources() = 0
-
virtual void clear() = 0
-
virtual void set_viewport(::CE::Platform::FramebufferSize size) = 0
-
virtual void set_depth_test(bool enabled) = 0
-
virtual void set_clear_colour(float r, float g, float b, float a) = 0
-
virtual void set_camera_matrices(const glm::mat4 &projection, const glm::mat4 &view) = 0
-
virtual ~Renderer() = default