client/app, client/main: Clean up, set better window title

This commit is contained in:
Perttu Ahola 2014-09-20 02:05:23 +03:00
parent 301887c179
commit 8e6b16fc53
2 changed files with 2 additions and 11 deletions

View File

@ -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_<client::State> 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);
}

View File

@ -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_<app::App> app0(app::createApp(view));
sp_<client::State> state(client::createState(app0));