]>
Dogcows Code - chaz/yoink/blob - src/Scene.hh
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
10 **************************************************************************/
18 #include <boost/shared_ptr.hpp>
20 #include <Moof/Cullable.hh>
21 #include <Moof/Drawable.hh>
22 #include <Moof/Resource.hh>
23 #include <Moof/Script.hh>
34 typedef boost::shared_ptr
<Scene
> SceneP
;
36 class Scene
: public Mf::Cullable
, public Mf::Drawable
, public Mf::Resource
39 boost::shared_ptr
<Impl
> mImpl
;
43 explicit Scene(const std::string
& name
);
45 static SceneP
alloc(const std::string
& name
)
47 return SceneP(new Scene(name
));
50 Mf::Script::Result
load(Mf::Settings
& settings
, Mf::Script
& script
);
52 void draw(Mf::Scalar alpha
) const;
53 void drawIfVisible(Mf::Scalar alpha
, const Mf::Frustum
& frustum
) const;
55 Mf::Scalar
getZCoord(const Mf::Vector2
& position
) const;
57 bool castRay(const Mf::Ray
<2>& ray
,
58 std::list
<Mf::Ray
<2>::Contact
>& hits
) const;
59 bool checkForCollision(Character
& character
);
61 static bool getPath(std::string
& name
);
This page took 0.039825 seconds and 4 git commands to generate.