Files
mcpe/platforms/sdl/desktop/AppPlatform_sdl.hpp
Brent afe875e4fa iOS Support (#113)
undefined
2024-01-22 17:22:41 +02:00

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;
};