@@ -16,7 +16,6 @@
namespace crown
{
-
ConsoleServer::ConsoleServer(Allocator& a)
: _clients(a)
@@ -10,7 +10,6 @@
/// Provides service to communicate with engine via TCP/IP.
///
/// @ingroup Device
@@ -9,7 +9,6 @@
/// Helper for parsing command line.
class CommandLine
@@ -13,7 +13,6 @@
/// Functions to manipulate Array.
/// @ingroup Containers
@@ -12,7 +12,6 @@
/// @defgroup Containers Containers
/// Dynamic array of POD items.
/// Array of generic event structs.
/// Functions to manipulate Map
template <typename T1, typename T2, int T1Aware, int T2Aware>
struct Pair
@@ -11,7 +11,6 @@
/// Functions to manipulate PriorityQueue.
/// Functions to manipulate Queue.
/// Functions to manipulate SortMap.
/// Functions to manipulate Vector.
@@ -7,7 +7,6 @@
/// Prints the current call stack.
void print_callstack();
void print_callstack()
}
@@ -18,7 +18,6 @@
const char* addr2line(const char* addr, char* line, int len)
char buf[256];
SymInitialize(GetCurrentProcess(), NULL, TRUE);
@@ -15,7 +15,6 @@
ApkFile::ApkFile(AAssetManager* asset_manager)
: _asset_manager(asset_manager)
, _asset(NULL)
/// Provides common facilities to access Android APK files.
/// @ingroup Filesystem
@@ -14,7 +14,6 @@
ApkFilesystem::ApkFilesystem(AAssetManager* asset_manager)
/// Access files on Android's assets folder.
/// The assets folder is read-only and all the paths are relative.
class ApkFilesystem : public Filesystem
DiskFile::DiskFile()
/// Provides common facilities to access files on disk.
DiskFilesystem::DiskFilesystem()
: _prefix(default_allocator())
/// Access files on disk.
/// All the file paths can be either relative or absolute.
/// When a relative path is given, it is automatically translated
/// An abstraction to access data files.
/// @defgroup Filesystem Filesystem
/// Provides a platform-independent way to access files and directories
class Filesystem;
class File;
/// Bit bucket file.
/// Discards all data written to it and provides null data reading from it; plain and simple.
@@ -21,7 +21,6 @@
/// Standard C file wrapper
class OsFile
#if CROWN_PLATFORM_POSIX
const char PATH_SEPARATOR = '/';
#elif CROWN_PLATFORM_WINDOWS
/// A reader that offers a convenient way to read text from a File
template<typename T>
struct equal_to
inline uint32_t next_pow_2(uint32_t x)
x--;
/// Functions to parse JSON-encoded data.
/// @ingroup JSON
/// @defgroup JSON
/// Enumerates JSON value types.
/// Functions to parse SJSON-encoded data.
/// Enumerates log levels.
struct LogSeverity
/// Functions to manipulate AABB.
/// @ingroup Math
/// Functions to manipulate Frustum.
float ray_plane_intersection(const Vector3& from, const Vector3& dir, const Plane& p)
const float num = dot(from, p.n);
/// @defgroup Math Math
/// Functions to manipulate Plane.
/// Returns the rotation portion of the matrix @a m as a Quaternion.
Quaternion quaternion(const Matrix3x3& m)
@@ -7,10 +7,9 @@
-/// Pseudo-random number generator.
+/// Pseudo-random number generator.
-/// Uses LCG algorithm: fast and compatible with the standard C rand().
+/// Uses LCG algorithm: fast and compatible with the standard C rand().
struct Random
/// Initializes the generator with the given @a seed.
/// Functions to manipulate Sphere.
/// Base class for memory allocators.
/// @ingroup Memory
@@ -8,7 +8,6 @@
LinearAllocator::LinearAllocator(Allocator& backing, uint32_t size)
: _backing(&backing)
, _physical_start(NULL)
/// Allocates memory linearly from a fixed chunk of memory
/// and frees all the allocations with a single call to clear().
Allocator& default_allocator();
Allocator& default_scratch_allocator();
class Allocator;
}; // namespace crown
PoolAllocator::PoolAllocator(Allocator& backing, uint32_t num_blocks, uint32_t block_size, uint32_t block_align)
: _backing(backing)
, _start(NULL)
/// Allocates fixed-size memory blocks from a fixed memory pool.
/// The backing allocator is used to allocate the memory pool.
ProxyAllocator::ProxyAllocator(Allocator& allocator, const char* name)
: _allocator(allocator)
, _name(name)
/// Offers the facility to tag allocators by a string identifier.
/// Proxy allocator is appended to a global linked list when instantiated
/// so that it is possible to later visit that list for debugging purposes.
StackAllocator::StackAllocator(char* begin, uint32_t size)
: _begin(begin)
, _top(begin)
/// Allocates memory linearly in a stack-like fashion from a
/// predefined chunk. All deallocations must occur in LIFO
/// order.
/// Netwotk address helper
/// @ingroup Network
@@ -33,7 +33,6 @@
struct ConnectResult
enum { NO_ERROR, BAD_SOCKET, REFUSED, TIMEOUT, UNKNOWN } error;
struct OsMetricsEvent
uint16_t x;
/// @defgroup Profiler Profiler
struct ProfilerEventType
StringId32::StringId32(const char* str)
: _id(murmur32(str, strlen32(str), 0))
struct StringId32
uint32_t _id;
class DynamicString
class FixedString
public:
/// Stream of characters.
typedef Array<char> StringStream;
inline int32_t vsnprintf(char* str, size_t num, const char* format, va_list args)
#if CROWN_COMPILER_MSVC
struct AtomicInt
AtomicInt(int val)
struct Mutex
Mutex()
struct Semaphore
Semaphore()
@@ -19,7 +19,6 @@
typedef int32_t (*ThreadFunction)(void*);
struct Thread
@@ -43,7 +43,6 @@
struct BgfxCallback : public bgfx::CallbackI
virtual void fatal(bgfx::Fatal::Enum _code, const char* _str)
@@ -23,7 +23,6 @@
struct BgfxAllocator;
struct BgfxCallback;
static void help(const char* msg = NULL)
if (msg)
/// Holds device options.
const char* InputDevice::name() const
return _name;
/// Represents a generic input device.
/// @ingroup Input
static const char* s_keyboard_button_names[] =
"tab", // KeyboardButton::TAB
/// Manages input devices.
/// @defgroup Input Input
class InputManager;
@@ -34,7 +34,6 @@
struct LightInfo
const char* name;
extern void load_api(LuaEnvironment& env);
// When an error occurs, logs the error message and pauses the engine.
enum LuaArgumentType
ARGUMENT_FLOAT
@@ -20,7 +20,6 @@
bool LuaStack::is_vector3(int i)
return device()->lua_environment()->is_vector3((Vector3*)get_pointer(i));
@@ -28,7 +28,6 @@
/// Wrapper to manipulate Lua stack.
/// @ingroup Lua
/// @defgroup Lua Lua
class LuaStack;
@@ -26,7 +26,6 @@ extern "C"
static bool s_exit = false;
struct MainThreadArgs
static KeyboardButton::Enum win_translate_key(int32_t winkey)
switch (winkey)
@@ -32,7 +32,6 @@
BundleCompiler::BundleCompiler(const char* source_dir, const char* bundle_dir)
: _source_fs(source_dir)
, _bundle_fs(bundle_dir)
class BundleCompiler
struct CompileOptions
CompileOptions(Filesystem& fs, Buffer& output, const char* platform, jmp_buf* buf)
struct CompileOptions;
} // namespace crown
namespace config_resource
void compile(const char* path, CompileOptions& opts)
void compile(const char* path, CompileOptions& opts);
struct FontResource
uint32_t version;
struct LevelResource
struct LuaResource
struct MaterialResource
struct VertexData
uint32_t num;
struct PackageResource
struct Resource
namespace physics_resource
inline void compile(const char* /*path*/, CompileOptions& /*opts*/) {}