forked from Hartmut/paradiso
reorganized repo to show clear module boundaries
This commit is contained in:
parent
8e00b668ea
commit
536a639bfd
396 changed files with 355 additions and 391 deletions
32
src/lib/include/paradiso/renderer.hpp
Normal file
32
src/lib/include/paradiso/renderer.hpp
Normal file
|
@ -0,0 +1,32 @@
|
|||
#ifndef PW_VISUAL_MESH_RENDERER_HPP
|
||||
#define PW_VISUAL_MESH_RENDERER_HPP
|
||||
|
||||
#include <map>
|
||||
#include <memory>
|
||||
|
||||
namespace paradiso {
|
||||
|
||||
struct Sprite;
|
||||
struct Shader;
|
||||
|
||||
/**
|
||||
* @brief a Renderer2D for sprites
|
||||
*/
|
||||
struct Renderer final {
|
||||
|
||||
Renderer();
|
||||
~Renderer();
|
||||
Renderer(const Renderer&) = delete;
|
||||
|
||||
bool draw(const Sprite& sprite, const Shader& shader);
|
||||
|
||||
bool ready() const;
|
||||
|
||||
private:
|
||||
struct impl;
|
||||
std::unique_ptr<impl> impl_;
|
||||
};
|
||||
|
||||
} // namespace paradiso
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue