mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
* Cleaned up AppPlatform classes * Documented & improved Keyboard & Mouse classes * Improved input-handling code in the Windows & SDL main.cpp files
17 lines
418 B
C++
17 lines
418 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;
|
|
protected:
|
|
void ensureDirectoryExists(const char* path) override;
|
|
};
|