]>
Dogcows Code - chaz/yoink/blob - src/Scene.hh
3c14b47e81564ee89c76a29e5631ec7d86e35845
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 moof::cullable
, public moof::drawable
, public moof::resource
39 boost::shared_ptr
<impl
> impl_
;
43 explicit Scene(const std::string
& name
);
45 static SceneP
alloc(const std::string
& name
)
47 return SceneP(new Scene(name
));
50 moof::script::status
load(moof::settings
& settings
, moof::script
& script
);
52 void draw(moof::scalar alpha
) const;
53 void draw_if_visible(moof::scalar alpha
, const moof::frustum
& frustum
) const;
55 moof::scalar
getZCoord(const moof::vector2
& position
) const;
57 bool castRay(const moof::ray
<2>& ray
,
58 std::list
<moof::ray
<2>::contact
>& hits
) const;
59 bool checkForCollision(Character
& character
);
This page took 0.033379 seconds and 4 git commands to generate.