@@ -28,7 +28,7 @@ OTHER DEALINGS IN THE SOFTWARE.
#include "Types.h"
#include "Str.h"
-namespace Crown
+namespace crown
{
class EventArgs
@@ -29,7 +29,7 @@ OTHER DEALINGS IN THE SOFTWARE.
#include "Weak.h"
#include "GarbageBin.h"
/* Delegate with 0 arguments */
@@ -489,4 +489,4 @@ static IDelegate4<TResult, TArg0, TArg1, TArg2, TArg3>* CreateDelegate(TClass* o
}
-} //namespace Crown
+} //namespace crown
#include "List.h"
#include "Delegate.h"
/*
@@ -96,4 +96,4 @@ void MulticastEvent<TSource, TArg1>::operator+=(HandlerType* handler)
mHandlers.Append(handler);
@@ -27,7 +27,7 @@ OTHER DEALINGS IN THE SOFTWARE.
#include <cstdlib>
/**
@@ -79,5 +79,5 @@ void Singleton<T>::CleanUp()
mInstance = 0;
-} // namespace Crown
+} // namespace crown
#include "Config.h"
#include <cstddef>
typedef unsigned char uchar; // 8-bit
@@ -53,5 +53,5 @@ typedef ulong StrId64; // 64-bit string hash
#endif
#include "Vec2.h"
#include "Color4.h"
@@ -46,5 +46,5 @@ public:
Color4 color;
};
#include "Log.h"
typedef List<WeakReferenced**> ObjectPPList;
#include "Exceptions.h"
class WeakReferenced
@@ -161,5 +161,5 @@ private:
@@ -33,7 +33,7 @@ OTHER DEALINGS IN THE SOFTWARE.
class StrSerializable
@@ -31,7 +31,7 @@ OTHER DEALINGS IN THE SOFTWARE.
#include "Vec3.h"
#include "Sphere.h"
@@ -313,5 +313,5 @@ inline Sphere Box::to_sphere() const
return Sphere(get_center(), get_radius());
@@ -26,7 +26,7 @@ OTHER DEALINGS IN THE SOFTWARE.
#include "Circle.h"
#include "Rect.h"
Rect Circle::to_rect() const
#include "MathUtils.h"
class Rect;
@@ -112,5 +112,5 @@ inline real Circle::get_area() const
return r * r * math::PI;
#include "Intersection.h"
//-----------------------------------------------------------------------------
@@ -174,5 +174,5 @@ Box Frustum::to_box() const
return tmp;
@@ -32,7 +32,7 @@ OTHER DEALINGS IN THE SOFTWARE.
enum FrustumPlane
@@ -65,5 +65,5 @@ public:
Box to_box() const; //!< Returns a Box containing the frustum volume
@@ -139,5 +139,5 @@ Circle Rect::to_circle() const
return Circle(get_center(), get_radius());
@@ -30,7 +30,7 @@ OTHER DEALINGS IN THE SOFTWARE.
class Circle;
@@ -118,5 +118,5 @@ inline void Rect::set_max(const Vec2& max)
this->max = max;
@@ -145,5 +145,5 @@ inline bool Sphere::contains_point(const Vec3& p) const
return (dist < r * r);
#include "RBTree.h"
//Note: TKey must implement operators < and ==
@@ -48,4 +48,4 @@ public:
#include "Shared.h"
class Str;
@@ -145,5 +145,5 @@ T* Generic::asType() const
return NULL;
#include <cassert>
#include <cstring>
@@ -345,5 +345,5 @@ inline T* List<T>::end()
return mArray + (mSize - 1);
enum RBTreeNodeColor { RED, BLACK };
@@ -686,5 +686,5 @@ int RBTree<TKey, TValue>::dbgVerify(Node* n) const
@@ -26,12 +26,12 @@ OTHER DEALINGS IN THE SOFTWARE.
const char* Str::EMPTY = "";
Str Str::mEmpty("");
class Str
@@ -985,5 +985,5 @@ inline int Str::FindLast(const char* str, char c)
return -1;
const Angles Angles::ZERO = Angles(0.0, 0.0, 0.0);
@@ -129,5 +129,5 @@ Quat Angles::to_quat() const
return b * p * h;
class Mat3;
@@ -61,5 +61,5 @@ public:
static const Angles ZERO;
@@ -25,7 +25,7 @@ OTHER DEALINGS IN THE SOFTWARE.
const Color4 Color4::ALICEBLUE = Color4(0XF0F8FFFF);
@@ -176,5 +176,5 @@ const Color4 Color4::WHITESMOKE = Color4(0XF5F5F5FF);
const Color4 Color4::YELLOW = Color4(0XFFFF00FF);
const Color4 Color4::YELLOWGREEN = Color4(0X9ACD32FF);
@@ -480,5 +480,5 @@ inline Color4 operator*(float scalar, const Color4& color)
return Color4(color.r * scalar, color.g * scalar, color.b * scalar, color.a * scalar);
#pragma once
@@ -156,5 +156,5 @@ inline T Interpolation::catmull_rom(const T& p0, const T& p1, const T& p2, const
return tmp * 0.5;
@@ -35,7 +35,7 @@ OTHER DEALINGS IN THE SOFTWARE.
@@ -857,5 +857,5 @@ inline bool Intersection::TestCircleRect(const Circle& c1, const Rect& r2, Vec2&
return true;
const Mat3 Mat3::IDENTITY = Mat3(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0);
@@ -655,5 +655,5 @@ Str Mat3::to_str() const
class Angles;
@@ -119,5 +119,5 @@ public:
static const Mat3 IDENTITY;
@@ -34,7 +34,7 @@ OTHER DEALINGS IN THE SOFTWARE.
#include "Vec4.h"
const Mat4 Mat4::IDENTITY = Mat4(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0);
@@ -1092,5 +1092,5 @@ Str Mat4::to_str() const
@@ -136,5 +136,5 @@ public:
static const Mat4 IDENTITY;
@@ -26,9 +26,9 @@ OTHER DEALINGS IN THE SOFTWARE.
#define BIT(i) (1 << i)
@@ -300,5 +300,5 @@ inline bool solve_quadratic_equation(real a, real b, real c, real& x1, real& x2)
} // namespace math
#include "Plane.h"
const Plane Plane::ZERO = Plane(Vec3::ZERO, 0.0);
@@ -85,5 +85,5 @@ bool Plane::contains_point(const Vec3& p) const
return math::equals(n.dot(p) + d, (real)0.0);
static const Plane ZAXIS;
#include "Point2.h"
const Point2 Point2::ZERO = Point2(0, 0);
@@ -34,4 +34,4 @@ const Point2 Point2::ONE = Point2(1, 1);
const Point2 Point2::XAXIS = Point2(1, 0);
const Point2 Point2::YAXIS = Point2(0, 1);
@@ -312,5 +312,5 @@ inline Str Point2::to_str() const
#include "Quat.h"
Quat::Quat()
@@ -206,5 +206,5 @@ Quat slerp(const Quat& start, const Quat& end, real t)
return delta * start;
@@ -78,5 +78,5 @@ public:
Str to_str() const; //!< Returns a Str containing the quaternion's components
@@ -73,5 +73,5 @@ inline float Random::get_unit_float()
return get_int() / (float) 0x7FFF;
@@ -66,5 +66,5 @@ inline Ray::~Ray()
#include "Shape.h"
Shape::Shape(ShapeType type):
#include "Box.h"
#include "Ray.h"
enum ShapeType
@@ -137,5 +137,5 @@ inline Plane Triangle::to_plane() const
return Plane(n, d);
const Vec2 Vec2::ZERO = Vec2(0.0, 0.0);
@@ -33,5 +33,5 @@ const Vec2 Vec2::ONE = Vec2(1.0, 1.0);
const Vec2 Vec2::XAXIS = Vec2(1.0, 0.0);
const Vec2 Vec2::YAXIS = Vec2(0.0, 1.0);
//!< 2D column vector
@@ -371,5 +371,5 @@ inline Vec2 operator*(real k, const Vec2& a)
return a * k;
const Vec3 Vec3::ZERO = Vec3(0.0, 0.0, 0.0);
@@ -34,5 +34,5 @@ const Vec3 Vec3::XAXIS = Vec3(1.0, 0.0, 0.0);
const Vec3 Vec3::YAXIS = Vec3(0.0, 1.0, 0.0);
const Vec3 Vec3::ZAXIS = Vec3(0.0, 0.0, 1.0);
@@ -387,5 +387,5 @@ inline Vec3 get_projected_perpendicular(const Vec3& v, const Vec3& n)
return v - get_projected_parallel(v, n);
const Vec4 Vec4::ZERO = Vec4(0.0, 0.0, 0.0, 0.0);
@@ -36,5 +36,5 @@ const Vec4 Vec4::YAXIS = Vec4(0.0, 1.0, 0.0, 0.0);
const Vec4 Vec4::ZAXIS = Vec4(0.0, 0.0, 1.0, 0.0);
const Vec4 Vec4::WAXIS = Vec4(0.0, 0.0, 0.0, 1.0);
@@ -352,5 +352,5 @@ inline Str Vec4::to_str() const
template <typename T>
@@ -187,5 +187,5 @@ inline const T* Auto<T>::GetPointer() const
return mPtr;
#include "Device.h"
void IGarbageable::Trash()
@@ -59,4 +59,4 @@ void GarbageBin::Empty()
mGarbage.clear();
class IGarbageable
@@ -52,4 +52,4 @@ private:
List<IGarbageable*> mGarbage;
class ReferenceCount
@@ -269,5 +269,5 @@ inline uint Shared<T>::GetReferenceCount()
return mReferenceCount.GetReferenceCount();
File::File() :
@@ -93,5 +93,5 @@ size_t File::GetSize()
return size;
#include <cstdio>
@@ -66,5 +66,5 @@ private:
File();
FileStream::FileStream(StreamOpenMode openMode, const Str& filename) :
#include "File.h"
FileSubStream::FileSubStream(StreamOpenMode openMode, const Str& filename, size_t position, size_t length) :
#include "FileStream.h"
class FileSubStream: public Stream
MemoryBuffer::MemoryBuffer()
#include "Stream.h"
class MemoryBuffer
@@ -121,5 +121,5 @@ public:
bool CanSeek() { return true; }
#include "zlib.h"
bool Stream::ZipTo(Stream* stream, size_t size, size_t& zippedSize)
@@ -340,5 +340,5 @@ void TextWriter::WriteString(const char* string)
enum SeekMode
@@ -304,5 +304,5 @@ private:
Stream* mStream;