mirror of
https://github.com/edubart/otclient.git
synced 2025-11-04 20:46:24 +01:00
Android compilation added.
This commit is contained in:
@@ -25,6 +25,9 @@
|
||||
#ifdef WIN32
|
||||
#include "win32window.h"
|
||||
WIN32Window window;
|
||||
#elif defined ANDROID
|
||||
#include "sdlplatform.h"
|
||||
SDLPlatform window;
|
||||
#else
|
||||
#include "x11window.h"
|
||||
#include <framework/core/clock.h>
|
||||
|
||||
75
src/framework/platform/sdlplatform.cpp
Normal file
75
src/framework/platform/sdlplatform.cpp
Normal file
@@ -0,0 +1,75 @@
|
||||
#include "sdlplatform.h"
|
||||
|
||||
void SDLPlatform::init() {
|
||||
}
|
||||
|
||||
void SDLPlatform::terminate() {
|
||||
}
|
||||
|
||||
void SDLPlatform::move(const Point& pos) {
|
||||
}
|
||||
|
||||
void SDLPlatform::resize(const Size& size) {
|
||||
}
|
||||
|
||||
void SDLPlatform::show() {
|
||||
}
|
||||
|
||||
void SDLPlatform::hide() {
|
||||
}
|
||||
|
||||
void SDLPlatform::maximize() {
|
||||
}
|
||||
|
||||
void SDLPlatform::poll() {
|
||||
}
|
||||
|
||||
void SDLPlatform::swapBuffers() {
|
||||
}
|
||||
|
||||
void SDLPlatform::showMouse() {
|
||||
}
|
||||
|
||||
void SDLPlatform::hideMouse() {
|
||||
}
|
||||
|
||||
int SDLPlatform::internalLoadMouseCursor(const ImagePtr& image, const Point& hotSpot) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SDLPlatform::setMouseCursor(int cursorId) {
|
||||
}
|
||||
|
||||
void SDLPlatform::restoreMouseCursor() {
|
||||
}
|
||||
|
||||
void SDLPlatform::setTitle(const std::string& title) {
|
||||
}
|
||||
|
||||
void SDLPlatform::setMinimumSize(const Size& minimumSize) {
|
||||
}
|
||||
|
||||
void SDLPlatform::setFullscreen(bool fullscreen) {
|
||||
}
|
||||
|
||||
void SDLPlatform::setVerticalSync(bool enable) {
|
||||
}
|
||||
|
||||
void SDLPlatform::setIcon(const std::string& iconFile) {
|
||||
}
|
||||
|
||||
void SDLPlatform::setClipboardText(const std::string& text) {
|
||||
}
|
||||
|
||||
Size SDLPlatform::getDisplaySize() {
|
||||
Size TODO;
|
||||
return TODO;
|
||||
}
|
||||
|
||||
std::string SDLPlatform::getClipboardText() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::string SDLPlatform::getPlatformType() {
|
||||
return nullptr;
|
||||
}
|
||||
39
src/framework/platform/sdlplatform.h
Normal file
39
src/framework/platform/sdlplatform.h
Normal file
@@ -0,0 +1,39 @@
|
||||
#ifndef SDL_PLATFORM_H
|
||||
#define SDL_PLATFORM_H
|
||||
|
||||
#include "platformwindow.h"
|
||||
|
||||
class SDLPlatform : public PlatformWindow
|
||||
{
|
||||
public:
|
||||
void init();
|
||||
void terminate();
|
||||
|
||||
void move(const Point& pos);
|
||||
void resize(const Size& size);
|
||||
void show();
|
||||
void hide();
|
||||
void maximize();
|
||||
void poll();
|
||||
void swapBuffers();
|
||||
void showMouse();
|
||||
void hideMouse();
|
||||
|
||||
void setMouseCursor(int cursorId);
|
||||
void restoreMouseCursor();
|
||||
|
||||
void setTitle(const std::string& title);
|
||||
void setMinimumSize(const Size& minimumSize);
|
||||
void setFullscreen(bool fullscreen);
|
||||
void setVerticalSync(bool enable);
|
||||
void setIcon(const std::string& iconFile);
|
||||
void setClipboardText(const std::string& text);
|
||||
|
||||
Size getDisplaySize();
|
||||
std::string getClipboardText();
|
||||
std::string getPlatformType();
|
||||
protected:
|
||||
int internalLoadMouseCursor(const ImagePtr& image, const Point& hotSpot);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -20,7 +20,7 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef WIN32
|
||||
#if !defined WIN32 && !defined ANDROID
|
||||
|
||||
#include "x11window.h"
|
||||
#include <framework/core/resourcemanager.h>
|
||||
|
||||
Reference in New Issue
Block a user