| 1234567891011121314151617181920212223242526 |
- //
- // renderer_impl.hpp
- // graphics
- //
- // Created by Sam Jaffe on 5/20/19.
- // Copyright © 2019 Sam Jaffe. All rights reserved.
- //
- #pragma once
- #include "game/graphics/graphics_fwd.h"
- #include "game/graphics/renderer.hpp"
- #include "game/math/math_fwd.hpp"
- namespace graphics {
- template <driver> renderer_impl * get_renderer_impl();
- struct renderer_impl {
- virtual ~renderer_impl() {}
- virtual std::shared_ptr<manager const> manager() const = 0;
- virtual void draw(identity<material>, math::matr4 const &,
- std::vector<vertex> const &) = 0;
- virtual void clear() = 0;
- virtual void flush() = 0;
- };
- }
|