mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
* macOS Support & Cleanup * Fix malformed comments in build-wasm.bat * Emscripten Fixes * * Add shebang to the grabsounds.py script Since it was changed from rw- to rwx, I'll add the shebang so that it actually runs properly. * * Re-add the patch_data and readme files. * * Remove sound data. * Fix some more things. * Think it's ready to pull now... --------- Co-authored-by: BrentDaMage <BrentDaMage@users.noreply.github.com> Co-authored-by: iProgramInCpp <iprogramincpp@gmail.com>
19 lines
432 B
C++
19 lines
432 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include <SDL2/SDL.h>
|
|
|
|
#include "AppPlatform_sdlbase.hpp"
|
|
|
|
void ensure_screenshots_folder(const char *screenshots);
|
|
|
|
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;
|
|
};
|