mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
* Mac OS X 10.6 & More C++03 Support * Fix SDL2 options.txt loading for C++03 --------- Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
21 lines
586 B
C++
21 lines
586 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;
|
|
std::string getOptionsFilePath() const;
|
|
};
|