]>
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/script.hh>
33 typedef boost::shared_ptr
<Scene
> SceneP
;
35 class Scene
: public moof::cullable
, public moof::drawable
38 boost::shared_ptr
<impl
> impl_
;
42 explicit Scene(const std::string
& name
);
44 static SceneP
alloc(const std::string
& name
)
46 return SceneP(new Scene(name
));
49 moof::script::status
load(moof::settings
& settings
, moof::script
& script
);
51 void draw(moof::scalar alpha
) const;
52 void draw_if_visible(moof::scalar alpha
, const moof::frustum
& frustum
) const;
54 moof::scalar
getZCoord(const moof::vector2
& position
) const;
56 bool castRay(const moof::ray
<2>& ray
,
57 std::list
<moof::ray
<2>::contact
>& hits
) const;
58 bool checkForCollision(Character
& character
);
This page took 0.037461 seconds and 5 git commands to generate.