From 8e6b16fc5317580eb6ddbfeec8c4981490f1c2e5 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 20 Sep 2014 02:05:23 +0300 Subject: [PATCH] client/app, client/main: Clean up, set better window title --- src/client/app.cpp | 11 +---------- src/client/main.cpp | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/client/app.cpp b/src/client/app.cpp index 40d7387..f9a8e98 100644 --- a/src/client/app.cpp +++ b/src/client/app.cpp @@ -104,13 +104,11 @@ static int debugPrint(lua_State *L) struct CApp: public Polycode::EventHandler, public App { Polycode::Core *core; - Polycode::Scene *scene; - Polycode::SceneLabel *label; lua_State *L; sp_ m_state; CApp(Polycode::PolycodeView *view): - Polycode::EventHandler(), core(NULL), scene(NULL), label(NULL), L(NULL) + Polycode::EventHandler(), core(NULL), L(NULL) { // Win32Core for Windows // CocoaCore for Mac @@ -122,11 +120,6 @@ struct CApp: public Polycode::EventHandler, public App Polycode::CoreServices::getInstance()->getResourceManager()->addDirResource("default", false); - scene = new Polycode::Scene(Polycode::Scene::SCENE_2D); - scene->getActiveCamera()->setOrthoSize(640, 480); - label = new Polycode::SceneLabel("Hello from Polycode C++!", 32); - scene->addChild(label); - L = lua_open(); luaL_openlibs(L); luaopen_debug(L); @@ -227,8 +220,6 @@ struct CApp: public Polycode::EventHandler, public App ~CApp() { - delete scene; - delete label; delete core; lua_close(L); } diff --git a/src/client/main.cpp b/src/client/main.cpp index 9b1acee..8f1d34f 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -98,7 +98,7 @@ int main(int argc, char *argv[]) return 1; } - Polycode::PolycodeView *view = new Polycode::PolycodeView("Hello Polycode!"); + Polycode::PolycodeView *view = new Polycode::PolycodeView("Buildat Client", true); sp_ app0(app::createApp(view)); sp_ state(client::createState(app0));