-/*] Copyright (c) 2009-2010, Charles McGarvey [**************************
+/*] Copyright (c) 2009-2011, Charles McGarvey [*****************************
**] All rights reserved.
*
-* vi:ts=4 sw=4 tw=75
-*
* Distributable under the terms and conditions of the 2-clause BSD license;
* see the file COPYING for a complete text of the license.
*
-**************************************************************************/
+*****************************************************************************/
#include <map>
NONE = 0,
LEFT = 1,
RIGHT = 2,
- TOP = 3
+ TOP = 3
};
Quad(const moof::vector3* vertices[4],
- const moof::image_handle& texture,
- int tileIndex) :
+ const moof::image_handle& texture,
+ int tileIndex) :
mTilemap(texture, tileIndex),
mBlending(false),
mFog(false),
moof::sprite mTilemap;
- bool mBlending;
- bool mFog;
- Surface mSurface;
+ bool mBlending;
+ bool mFog;
+ Surface mSurface;
};
moof::image_handle mTexture;
std::list< boost::shared_ptr<impl::Quad> > mObjects;
- std::list<moof::line2> mLines;
+ std::list<moof::line2> mLines;
- moof::aabb<3> mBounds;
+ moof::aabb<3> mBounds;
enum AXIS
int rotate(moof::script& script)
{
- size_t index = 0;
+ size_t index = 0;
moof::scalar value;
script[1].require_number().get(index);
script[2].require_number().get(value);
- moof::matrix_rotate_about_world_axis(mTransform, index,
- moof::rad(value));
+ moof::matrix_rotate_about_world_axis(mTransform, index, moof::rad(value));
return 0;
}
}
}
- Quad::Surface surface = Quad::NONE;
+ Quad::Surface surface = Quad::NONE;
table.get(surface, "surface");
if (surface != Quad::NONE)
mLines.push_back(moof::line<2>(bl, tr));
}
-
return 0;
}
moof::script::slot param = script[1];
moof::script::slot top = script[-1];
- int index = 0;
- int width = 1;
+ int index = 0;
+ int width = 1;
bool blending = false;
bool fog = false;
bool Scene::castRay(const moof::ray<2>& ray,
- std::list<moof::ray<2>::contact>& hits) const
+ std::list<moof::ray<2>::contact>& hits) const
{
std::list< moof::line<2> >& lines = impl_->mLines;
std::list< moof::line<2> >::const_iterator it;
return false;
}
-