texture manager, going to pull out into a resource manager
This commit is contained in:
@@ -5,7 +5,10 @@
|
||||
#ifndef RLA_IIPP_SDLRENDERER_HPP
|
||||
#define RLA_IIPP_SDLRENDERER_HPP
|
||||
#include "../renderer.hpp"
|
||||
#include "sdltexturemanager.hpp"
|
||||
#include <SDL.h>
|
||||
#include <SDL_ttf.h>
|
||||
#include <SDL_image.h>
|
||||
|
||||
class SdlRenderer : public Renderer {
|
||||
void initialize(RendererParams params) override;
|
||||
@@ -13,9 +16,17 @@ class SdlRenderer : public Renderer {
|
||||
void flush() override;
|
||||
|
||||
void draw_point(int x, int y, Color color) override;
|
||||
|
||||
public:
|
||||
~SdlRenderer();
|
||||
|
||||
public:
|
||||
void draw_text(std::string text, int x, int y) override;
|
||||
|
||||
private:
|
||||
SDL_Window* window = nullptr;
|
||||
SDL_Renderer* renderer = nullptr;
|
||||
std::unique_ptr<SdlTextureManager> texture_manager = nullptr;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user