Sirikata
libmesh/include/sirikata/mesh/Visual.hpp
Go to the documentation of this file.
00001 // Copyright (c) 2011 Sirikata Authors. All rights reserved.
00002 // Use of this source code is governed by a BSD-style license that can
00003 // be found in the LICENSE file.
00004 
00005 #ifndef _SIRIKATA_MESH_VISUAL_HPP_
00006 #define _SIRIKATA_MESH_VISUAL_HPP_
00007 
00008 #include <sirikata/mesh/Platform.hpp>
00009 #include <sirikata/core/util/Sha256.hpp>
00010 #include <stack>
00011 
00012 namespace Sirikata {
00013 namespace Mesh {
00014 
00021 class SIRIKATA_MESH_EXPORT Visual {
00022   public:
00023     virtual ~Visual();
00024 
00025     virtual const String& type() const = 0;
00026 
00027     String uri;
00028     SHA256 hash;
00029 };
00030 
00031 typedef std::tr1::shared_ptr<Visual> VisualPtr;
00032 typedef std::tr1::weak_ptr<Visual> VisualWPtr;
00033 
00034 
00035 } // namespace Mesh
00036 } // namespace Sirikata
00037 
00038 #endif //_SIRIKATA_MESH_VISUAL_HPP_