Daniele Bartolini il y a 10 ans
Parent
commit
e7cc2a65fe
2 fichiers modifiés avec 69 ajouts et 85 suppressions
  1. 69 0
      src/main/main_android.cpp
  2. 0 85
      src/main/window_android.cpp

+ 69 - 0
src/main/main_android.cpp

@@ -212,6 +212,75 @@ public:
 	MainThreadArgs _margs;
 };
 
+class WindowAndroid : public Window
+{
+public:
+
+	WindowAndroid()
+	{
+	}
+
+	void open(uint16_t /*x*/, uint16_t /*y*/, uint16_t /*width*/, uint16_t /*height*/, uint32_t /*parent*/)
+	{
+	}
+
+	void close()
+	{
+	}
+
+	void bgfx_setup()
+	{
+	}
+
+	void show()
+	{
+	}
+
+	void hide()
+	{
+	}
+
+	void resize(uint16_t /*width*/, uint16_t /*height*/)
+	{
+	}
+
+	void move(uint16_t /*x*/, uint16_t /*y*/)
+	{
+	}
+
+	void minimize()
+	{
+	}
+
+	void restore()
+	{
+	}
+
+	const char* title()
+	{
+		return NULL;
+	}
+
+	void set_title (const char* /*title*/)
+	{
+	}
+
+	void* handle()
+	{
+		return NULL;
+	}
+};
+
+Window* Window::create(Allocator& a)
+{
+	return CE_NEW(a, WindowAndroid)();
+}
+
+void Window::destroy(Allocator& a, Window& w)
+{
+	CE_DELETE(a, &w);
+}
+
 static AndroidDevice s_advc;
 
 bool next_event(OsEvent& ev)

+ 0 - 85
src/main/window_android.cpp

@@ -1,85 +0,0 @@
-/*
- * Copyright (c) 2012-2016 Daniele Bartolini and individual contributors.
- * License: https://github.com/taylor001/crown/blob/master/LICENSE
- */
-
-#include "platform.h"
-
-#if CROWN_PLATFORM_ANDROID
-
-#include "memory.h"
-#include "window.h"
-
-namespace crown
-{
-
-class WindowAndroid : public Window
-{
-public:
-
-	WindowAndroid()
-	{
-	}
-
-	void open(uint16_t /*x*/, uint16_t /*y*/, uint16_t /*width*/, uint16_t /*height*/, uint32_t /*parent*/)
-	{
-	}
-
-	void close()
-	{
-	}
-
-	void bgfx_setup()
-	{
-	}
-
-	void show()
-	{
-	}
-
-	void hide()
-	{
-	}
-
-	void resize(uint16_t /*width*/, uint16_t /*height*/)
-	{
-	}
-
-	void move(uint16_t /*x*/, uint16_t /*y*/)
-	{
-	}
-
-	void minimize()
-	{
-	}
-
-	void restore()
-	{
-	}
-
-	const char* title()
-	{
-	}
-
-	void set_title (const char* /*title*/)
-	{
-	}
-
-	void* handle()
-	{
-	}
-};
-
-Window* Window::create(Allocator& a)
-{
-	return CE_NEW(a, WindowAndroid)();
-}
-
-void Window::destroy(Allocator& a, Window& w)
-{
-	CE_DELETE(a, &w);
-}
-
-} // namespace crown
-
-#endif // CROWN_PLATFORM_ANDROID