]>
Dogcows Code - chaz/yoink/blob - src/Scene.hh
2 /*] Copyright (c) 2009-2011, Charles McGarvey [*****************************
3 **] All rights reserved.
5 * Distributable under the terms and conditions of the 2-clause BSD license;
6 * see the file COPYING for a complete text of the license.
8 *****************************************************************************/
16 #include <boost/shared_ptr.hpp>
18 #include <moof/cullable.hh>
19 #include <moof/drawable.hh>
20 #include <moof/script.hh>
23 // forward declarations
30 typedef boost::shared_ptr
<Scene
> SceneP
;
32 class Scene
: public moof::cullable
, public moof::drawable
35 boost::shared_ptr
<impl
> impl_
;
39 explicit Scene(const std::string
& name
);
41 static SceneP
alloc(const std::string
& name
)
43 return SceneP(new Scene(name
));
46 moof::script::status
load(moof::settings
& settings
, moof::script
& script
);
48 void draw(moof::scalar alpha
) const;
49 void draw_if_visible(moof::scalar alpha
, const moof::frustum
& frustum
) const;
51 moof::scalar
getZCoord(const moof::vector2
& position
) const;
53 bool castRay(const moof::ray
<2>& ray
,
54 std::list
<moof::ray
<2>::contact
>& hits
) const;
55 bool checkForCollision(Character
& character
);
This page took 0.034333 seconds and 4 git commands to generate.