diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-02 15:57:59 +0200 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-02 15:57:59 +0200 |
commit | de2c2593f9f272c5151d74af4ff846fdd70a9bc7 (patch) | |
tree | 4001a60809734a60b75e39da5c994d9381b6efe2 /src/crepe/api/game.cpp | |
parent | 41bd601ef62d967c80cc0591eaf6b4290baae425 (diff) |
working resource manager and textures and sprite to new standard
Diffstat (limited to 'src/crepe/api/game.cpp')
-rw-r--r-- | src/crepe/api/game.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/crepe/api/game.cpp b/src/crepe/api/game.cpp new file mode 100644 index 0000000..02a0132 --- /dev/null +++ b/src/crepe/api/game.cpp @@ -0,0 +1,18 @@ + + + +#include "game.h" +#include "api/spritesheet.h" +#include "facade/SdlContext.h" +#include "facade/Texture.h" +#include <vector> + + +void game::render(std::vector<crepe::Texture*> & draw, std::vector<crepe::api::Spritesheet*> & ss){ + auto& ctx = crepe::SdlContext::get_instance(); + + ctx.loop(*draw[0], *ss[0]); +} + + + |