Files
mcpe/platforms/sdl/AppPlatform_sdl.hpp
2023-08-25 19:58:18 +03:00

20 lines
545 B
C++

#pragma once
#include <string>
#include "AppPlatform_sdlbase.hpp"
class AppPlatform_sdl : public AppPlatform_sdlbase
{
public:
AppPlatform_sdl(std::string storageDir, SDL_Window *window);
void saveScreenshot(const std::string& fileName, int width, int height) override;
Texture loadTexture(const std::string& path, bool b = false) override;
std::vector<std::string> getOptionStrings() override;
void setOptionStrings(const std::vector<std::string>& str) override;
protected:
void ensureDirectoryExists(const char* path) override;
};