mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
26 lines
635 B
C++
26 lines
635 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "../base/AppPlatform_sdl_base.hpp"
|
|
|
|
#define EM_BOOL bool
|
|
#define EM_TRUE true
|
|
#define EM_FALSE false
|
|
|
|
class AppPlatform_sdl : public AppPlatform_sdl_base
|
|
{
|
|
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;
|
|
bool doesTextureExist(const std::string& path) override;
|
|
|
|
bool hasFileSystemAccess() override;
|
|
std::string getPatchData() override;
|
|
|
|
protected:
|
|
void ensureDirectoryExists(const char* path) override;
|
|
};
|