[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Usata-commits] Changes to usata2/src/usata.hpp
From: |
David Lau |
Subject: |
[Usata-commits] Changes to usata2/src/usata.hpp |
Date: |
Tue, 01 Mar 2005 19:27:13 -0500 |
Index: usata2/src/usata.hpp
diff -u usata2/src/usata.hpp:1.13 usata2/src/usata.hpp:1.14
--- usata2/src/usata.hpp:1.13 Fri Feb 25 18:08:01 2005
+++ usata2/src/usata.hpp Wed Mar 2 00:27:11 2005
@@ -1,7 +1,7 @@
// -*- mode: C++; tab-width: 4; indent-tabs-mode: t; -*- vim:ts=4:sw=4
//
-// Copyright (C) 2004 David Lau (skunix)
-// Chong Kai Xiong (descender)
+// Copyright (C) 2004, 2005 David Lau (skunix)
+// Chong Kai Xiong (descender)
//
// This file is part of The Plains of Usata.
//
@@ -10,13 +10,13 @@
// included in the software distribution, or visit
// http://www.fsf.org/licenses/gpl.html.
//
-// $Id: usata.hpp,v 1.13 2005/02/25 18:08:01 skunix Exp $
+// $Id: usata.hpp,v 1.14 2005/03/02 00:27:11 skunix Exp $
#ifndef USATA_USATA_HPP
#define USATA_USATA_HPP
#include <memory>
-
+#include <boost/shared_ptr.hpp>
namespace usata
{
@@ -35,7 +35,7 @@
private:
void setup_video();
std::auto_ptr<TextureMapManager> image_manager;
- std::auto_ptr<SceneManager> scene_manager;
+ boost::shared_ptr<SceneManager> scene_manager;
std::auto_ptr<input::Manager> input_manager;
std::auto_ptr<SceneLoader> mSceneLoader;
@@ -47,7 +47,8 @@
int run();
int loop();
- SceneManager& scene() const { return *scene_manager.get(); }
+ boost::shared_ptr<SceneManager> scene() const { return
scene_manager;}
+
TextureMapManager& images()const{return
*image_manager.get();}
};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Usata-commits] Changes to usata2/src/usata.hpp,
David Lau <=