From 46f738681adc9499b314628f7450905ca1303727 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Tue, 5 Aug 2014 13:44:36 -0700 Subject: [PATCH] Remove template console backend, to be completed in another project --- .../backend/console/ConsoleApplication.cpp | 52 ------------------- .../src/backend/console/ConsoleApplication.h | 41 --------------- .../src/backend/console/ConsoleRenderer.cpp | 36 ------------- project/src/backend/console/ConsoleRenderer.h | 26 ---------- project/src/backend/console/ConsoleWindow.cpp | 43 --------------- project/src/backend/console/ConsoleWindow.h | 27 ---------- 6 files changed, 225 deletions(-) delete mode 100644 project/src/backend/console/ConsoleApplication.cpp delete mode 100644 project/src/backend/console/ConsoleApplication.h delete mode 100644 project/src/backend/console/ConsoleRenderer.cpp delete mode 100644 project/src/backend/console/ConsoleRenderer.h delete mode 100644 project/src/backend/console/ConsoleWindow.cpp delete mode 100644 project/src/backend/console/ConsoleWindow.h diff --git a/project/src/backend/console/ConsoleApplication.cpp b/project/src/backend/console/ConsoleApplication.cpp deleted file mode 100644 index aba66d54a..000000000 --- a/project/src/backend/console/ConsoleApplication.cpp +++ /dev/null @@ -1,52 +0,0 @@ -#include "ConsoleApplication.h" - - -namespace lime { - - - AutoGCRoot* Application::callback = 0; - - - double Application::GetTicks () { - - return 0; - - } - - - ConsoleApplication::ConsoleApplication () { - - KeyEvent keyEvent; - MouseEvent mouseEvent; - RenderEvent renderEvent; - TouchEvent touchEvent; - UpdateEvent updateEvent; - WindowEvent windowEvent; - - } - - - ConsoleApplication::~ConsoleApplication () { - - - - } - - - int ConsoleApplication::Exec () { - - printf ("Hello World\n"); - - return 0; - - } - - - Application* CreateApplication () { - - return new ConsoleApplication (); - - } - - -} \ No newline at end of file diff --git a/project/src/backend/console/ConsoleApplication.h b/project/src/backend/console/ConsoleApplication.h deleted file mode 100644 index 7dae12d02..000000000 --- a/project/src/backend/console/ConsoleApplication.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef LIME_CONSOLE_APPLICATION_H -#define LIME_CONSOLE_APPLICATION_H - - -#include -#include -#include -#include -#include -#include -#include - - -namespace lime { - - - class ConsoleApplication : public Application { - - public: - - ConsoleApplication (); - ~ConsoleApplication (); - - virtual int Exec (); - - private: - - KeyEvent keyEvent; - MouseEvent mouseEvent; - RenderEvent renderEvent; - TouchEvent touchEvent; - UpdateEvent updateEvent; - WindowEvent windowEvent; - - }; - - -} - - -#endif \ No newline at end of file diff --git a/project/src/backend/console/ConsoleRenderer.cpp b/project/src/backend/console/ConsoleRenderer.cpp deleted file mode 100644 index 0ab9d6c18..000000000 --- a/project/src/backend/console/ConsoleRenderer.cpp +++ /dev/null @@ -1,36 +0,0 @@ -#include "ConsoleWindow.h" -#include "ConsoleRenderer.h" - - -namespace lime { - - - ConsoleRenderer::ConsoleRenderer (Window* window) { - - currentWindow = window; - - } - - - ConsoleRenderer::~ConsoleRenderer () { - - - - } - - - void ConsoleRenderer::Flip () { - - - - } - - - Renderer* CreateRenderer (Window* window) { - - return new ConsoleRenderer (window); - - } - - -} \ No newline at end of file diff --git a/project/src/backend/console/ConsoleRenderer.h b/project/src/backend/console/ConsoleRenderer.h deleted file mode 100644 index 81a567210..000000000 --- a/project/src/backend/console/ConsoleRenderer.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef LIME_CONSOLE_RENDERER_H -#define LIME_CONSOLE_RENDERER_H - - -#include - - -namespace lime { - - - class ConsoleRenderer : public Renderer { - - public: - - ConsoleRenderer (Window* window); - ~ConsoleRenderer (); - - virtual void Flip (); - - }; - - -} - - -#endif \ No newline at end of file diff --git a/project/src/backend/console/ConsoleWindow.cpp b/project/src/backend/console/ConsoleWindow.cpp deleted file mode 100644 index 6cf0d7021..000000000 --- a/project/src/backend/console/ConsoleWindow.cpp +++ /dev/null @@ -1,43 +0,0 @@ -#include "ConsoleWindow.h" - - -namespace lime { - - - ConsoleWindow::ConsoleWindow (Application* application, int width, int height, int flags, const char* title) { - - currentApplication = application; - this->flags = flags; - - } - - - ConsoleWindow::~ConsoleWindow () { - - - - } - - - void ConsoleWindow::Move (int x, int y) { - - - - } - - - void ConsoleWindow::Resize (int width, int height) { - - - - } - - - Window* CreateWindow (Application* application, int width, int height, int flags, const char* title) { - - return new ConsoleWindow (application, width, height, flags, title); - - } - - -} \ No newline at end of file diff --git a/project/src/backend/console/ConsoleWindow.h b/project/src/backend/console/ConsoleWindow.h deleted file mode 100644 index 55ab88594..000000000 --- a/project/src/backend/console/ConsoleWindow.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef LIME_CONSOLE_WINDOW_H -#define LIME_CONSOLE_WINDOW_H - - -#include - - -namespace lime { - - - class ConsoleWindow : public Window { - - public: - - ConsoleWindow (Application* application, int width, int height, int flags, const char* title); - ~ConsoleWindow (); - - virtual void Move (int x, int y); - virtual void Resize (int width, int height); - - }; - - -} - - -#endif \ No newline at end of file