forked from Hartmut/paradiso
stripped down all pixwerx code to a minimal istic subset
This commit is contained in:
commit
612677c52d
398 changed files with 164811 additions and 0 deletions
29
src/lib/renderer.hpp
Normal file
29
src/lib/renderer.hpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#ifndef PW_VISUAL_MESH_RENDERER_HPP
|
||||
#define PW_VISUAL_MESH_RENDERER_HPP
|
||||
|
||||
#include <map>
|
||||
#include <memory>
|
||||
|
||||
namespace paradiso {
|
||||
struct Sprite;
|
||||
|
||||
/**
|
||||
* @brief a Renderer2D for sprites
|
||||
*/
|
||||
struct Renderer final {
|
||||
Renderer();
|
||||
~Renderer();
|
||||
Renderer(const Renderer&) = delete;
|
||||
|
||||
bool draw(const Sprite& m);
|
||||
|
||||
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