many exports to scriptengine

This commit is contained in:
cirdan
2008-01-24 22:16:53 +00:00
parent 2373b382f1
commit 491c09e235
29 changed files with 600 additions and 287 deletions

View File

@ -7,8 +7,6 @@
#ifndef BLUECORE_POINT_H
#define BLUECORE_POINT_H
#include "rectangle.h"
namespace BlueCore
{
template<typename type>
@ -26,30 +24,9 @@ namespace BlueCore
Point2DTemplate( type x, type y ) : _x(x), _y(y)
{
}
bool in( const Rectangle2DTemplate<type> &rect );
};
#include "rectangle.h"
template<typename type>
bool Point2DTemplate<type>::in( const Rectangle2DTemplate<type> &rect )
{
if( _x < rect._x )
return false;
if( _x > (rect._x + rect._width) )
return false;
if( _y < rect._y )
return false;
if( _y > (rect._y + rect._height) )
return false;
return true;
}
typedef Point2DTemplate<int> Point2D;
};

View File

@ -7,8 +7,8 @@
#ifndef BLUECORE_RAY_H
#define BLUECORE_RAY_H
#include "scalar.h"
#include "vector.h"
#include "Scalar.h"
#include "Vector.h"
namespace BlueCore
{
@ -44,7 +44,7 @@ namespace BlueCore
* set the point
*/
template <class S>
inline setPoint( const Vector3Template<S> &point )
inline void setPoint( const Vector3Template<S> &point )
{
this->point = point;
}
@ -54,7 +54,7 @@ namespace BlueCore
* set the direction
*/
template <class S>
inline setDirection( const Vector3Template<S> &direction )
inline void setDirection( const Vector3Template<S> &direction )
{
this->direction = direction.normalized();
}

View File

@ -7,7 +7,7 @@
#ifndef BLUECORE_RECTANGLE_H
#define BLUECORE_RECTANGLE_H
#include "point.h"
#include "Point.h"
namespace BlueCore
{