Files
mcpe/platforms/sdl/desktop/AppPlatform_sdl.hpp
2023-11-01 21:59:13 -04:00

24 lines
536 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 hasFileSystemAccess() override;
protected:
void ensureDirectoryExists(const char* path) override;
};