| @@ -21,6 +21,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Public Audio class | * Public Audio class | ||||
| */ | */ | ||||
| @@ -32,3 +35,5 @@ void Audio::Setup(int channels) | |||||
| #endif | #endif | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -19,11 +19,16 @@ | |||||
| #include <stdint.h> | #include <stdint.h> | ||||
| namespace lol | |||||
| { | |||||
| class Audio | class Audio | ||||
| { | { | ||||
| public: | public: | ||||
| static void Setup(int channels); | static void Setup(int channels); | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_AUDIO_H__ | #endif // __DH_AUDIO_H__ | ||||
| @@ -18,6 +18,9 @@ | |||||
| #include <stdint.h> | #include <stdint.h> | ||||
| namespace lol | |||||
| { | |||||
| template class BitField<unsigned int COUNT> | template class BitField<unsigned int COUNT> | ||||
| { | { | ||||
| public: | public: | ||||
| @@ -46,5 +49,7 @@ private: | |||||
| uint32_t bits[(COUNT + 31) / 32]; | uint32_t bits[(COUNT + 31) / 32]; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_BITFIELD_H__ | #endif // __DH_BITFIELD_H__ | ||||
| @@ -17,6 +17,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| #include "debugfps.h" | #include "debugfps.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * DebugFps implementation class | * DebugFps implementation class | ||||
| */ | */ | ||||
| @@ -104,3 +107,5 @@ DebugFps::~DebugFps() | |||||
| delete data; | delete data; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include "entity.h" | #include "entity.h" | ||||
| namespace lol | |||||
| { | |||||
| class DebugFpsData; | class DebugFpsData; | ||||
| class DebugFps : public Entity | class DebugFps : public Entity | ||||
| @@ -33,5 +36,7 @@ private: | |||||
| DebugFpsData *data; | DebugFpsData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_DEBUGFPS_H__ | #endif // __DH_DEBUGFPS_H__ | ||||
| @@ -22,6 +22,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| #include "debugrecord.h" | #include "debugrecord.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * DebugRecord implementation class | * DebugRecord implementation class | ||||
| */ | */ | ||||
| @@ -102,3 +105,6 @@ DebugRecord::~DebugRecord() | |||||
| delete data; | delete data; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include "entity.h" | #include "entity.h" | ||||
| namespace lol | |||||
| { | |||||
| class DebugRecordData; | class DebugRecordData; | ||||
| class DebugRecord : public Entity | class DebugRecord : public Entity | ||||
| @@ -34,5 +37,7 @@ private: | |||||
| DebugRecordData *data; | DebugRecordData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_DEBUGRECORD_H__ | #endif // __DH_DEBUGRECORD_H__ | ||||
| @@ -25,6 +25,9 @@ | |||||
| #include "lolgl.h" | #include "lolgl.h" | ||||
| #include "debugsphere.h" | #include "debugsphere.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * DebugSphere implementation class | * DebugSphere implementation class | ||||
| */ | */ | ||||
| @@ -201,3 +204,5 @@ DebugSphere::~DebugSphere() | |||||
| delete data; | delete data; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include "entity.h" | #include "entity.h" | ||||
| namespace lol | |||||
| { | |||||
| class DebugSphereData; | class DebugSphereData; | ||||
| class DebugSphere : public Entity | class DebugSphere : public Entity | ||||
| @@ -34,5 +37,7 @@ private: | |||||
| DebugSphereData *data; | DebugSphereData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_DEBUGSPHERE_H__ | #endif // __DH_DEBUGSPHERE_H__ | ||||
| @@ -17,6 +17,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| #include "debugstats.h" | #include "debugstats.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * DebugStats implementation class | * DebugStats implementation class | ||||
| */ | */ | ||||
| @@ -59,3 +62,5 @@ DebugStats::~DebugStats() | |||||
| delete data; | delete data; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include "entity.h" | #include "entity.h" | ||||
| namespace lol | |||||
| { | |||||
| class DebugStatsData; | class DebugStatsData; | ||||
| class DebugStats : public Entity | class DebugStats : public Entity | ||||
| @@ -33,5 +36,7 @@ private: | |||||
| DebugStatsData *data; | DebugStatsData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_DEBUGSTATS_H__ | #endif // __DH_DEBUGSTATS_H__ | ||||
| @@ -22,6 +22,9 @@ | |||||
| # define strcasecmp _stricmp | # define strcasecmp _stricmp | ||||
| #endif | #endif | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Dict implementation class | * Dict implementation class | ||||
| */ | */ | ||||
| @@ -142,3 +145,5 @@ Entity *Dict::GetEntity(int id) | |||||
| return data->entities[id]; | return data->entities[id]; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include "entity.h" | #include "entity.h" | ||||
| namespace lol | |||||
| { | |||||
| class DictData; | class DictData; | ||||
| class Dict | class Dict | ||||
| @@ -36,5 +39,7 @@ private: | |||||
| DictData *data; | DictData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_DICT_H__ | #endif // __DH_DICT_H__ | ||||
| @@ -27,6 +27,9 @@ | |||||
| #include "lolgl.h" | #include "lolgl.h" | ||||
| #include "eglapp.h" | #include "eglapp.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * EGL App implementation class | * EGL App implementation class | ||||
| */ | */ | ||||
| @@ -189,3 +192,5 @@ EglApp::~EglApp() | |||||
| free(data); | free(data); | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include "matrix.h" | #include "matrix.h" | ||||
| namespace lol | |||||
| { | |||||
| class EglAppData; | class EglAppData; | ||||
| class EglApp | class EglApp | ||||
| @@ -32,5 +35,7 @@ private: | |||||
| EglAppData *data; | EglAppData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_EGLAPP_H__ | #endif // __DH_EGLAPP_H__ | ||||
| @@ -17,6 +17,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Emitter implementation class | * Emitter implementation class | ||||
| */ | */ | ||||
| @@ -93,3 +96,5 @@ Emitter::~Emitter() | |||||
| delete data; | delete data; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include "entity.h" | #include "entity.h" | ||||
| namespace lol | |||||
| { | |||||
| class EmitterData; | class EmitterData; | ||||
| class Emitter : public Entity | class Emitter : public Entity | ||||
| @@ -36,5 +39,7 @@ private: | |||||
| EmitterData *data; | EmitterData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_EMITTER_H__ | #endif // __DH_EMITTER_H__ | ||||
| @@ -17,6 +17,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Public Entity class | * Public Entity class | ||||
| */ | */ | ||||
| @@ -66,3 +69,5 @@ void Entity::TickDraw(float deltams) | |||||
| #endif | #endif | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -21,6 +21,9 @@ | |||||
| #include <stdint.h> | #include <stdint.h> | ||||
| namespace lol | |||||
| { | |||||
| class Entity | class Entity | ||||
| { | { | ||||
| friend class Ticker; | friend class Ticker; | ||||
| @@ -79,5 +82,7 @@ private: | |||||
| int ref, autorelease, destroy; | int ref, autorelease, destroy; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_ENTITY_H__ | #endif // __DH_ENTITY_H__ | ||||
| @@ -17,6 +17,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Font implementation class | * Font implementation class | ||||
| */ | */ | ||||
| @@ -85,3 +88,5 @@ vec2i Font::GetSize() const | |||||
| return data->size; | return data->size; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include "entity.h" | #include "entity.h" | ||||
| namespace lol | |||||
| { | |||||
| class FontData; | class FontData; | ||||
| class Font : public Entity | class Font : public Entity | ||||
| @@ -40,5 +43,7 @@ private: | |||||
| FontData *data; | FontData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_FONT_H__ | #endif // __DH_FONT_H__ | ||||
| @@ -14,6 +14,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Forge implementation class | * Forge implementation class | ||||
| */ | */ | ||||
| @@ -56,3 +59,5 @@ Font *Forge::GetFont(int id) | |||||
| return (Font *)data->fonts.GetEntity(id); | return (Font *)data->fonts.GetEntity(id); | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -19,6 +19,9 @@ | |||||
| #include "font.h" | #include "font.h" | ||||
| namespace lol | |||||
| { | |||||
| class Forge | class Forge | ||||
| { | { | ||||
| public: | public: | ||||
| @@ -27,5 +30,7 @@ public: | |||||
| static Font *GetFont(int id); | static Font *GetFont(int id); | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_FORGE_H__ | #endif // __DH_FORGE_H__ | ||||
| @@ -14,6 +14,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Hash implementation class | * Hash implementation class | ||||
| */ | */ | ||||
| @@ -56,3 +59,5 @@ uint32_t Hash::Crc32(char const *str) | |||||
| return ret ^ 0xffffffff; | return ret ^ 0xffffffff; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -16,11 +16,16 @@ | |||||
| #if !defined __DH_HASH_H__ | #if !defined __DH_HASH_H__ | ||||
| #define __DH_HASH_H__ | #define __DH_HASH_H__ | ||||
| namespace lol | |||||
| { | |||||
| class Hash | class Hash | ||||
| { | { | ||||
| public: | public: | ||||
| static uint32_t Crc32(char const *data); | static uint32_t Crc32(char const *data); | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_HASH_H__ | #endif // __DH_HASH_H__ | ||||
| @@ -22,6 +22,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Input implementation class | * Input implementation class | ||||
| */ | */ | ||||
| @@ -174,3 +177,5 @@ void Input::UnsetMouseButton(int index) | |||||
| } | } | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include "matrix.h" | #include "matrix.h" | ||||
| namespace lol | |||||
| { | |||||
| class WorldEntity; | class WorldEntity; | ||||
| class Input | class Input | ||||
| @@ -38,5 +41,7 @@ public: | |||||
| static void UnsetMouseButton(int index); | static void UnsetMouseButton(int index); | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_INPUT_H__ | #endif // __DH_INPUT_H__ | ||||
| @@ -16,6 +16,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| Layer::Layer(int w, int h, int z, int o, uint32_t *in_data) | Layer::Layer(int w, int h, int z, int o, uint32_t *in_data) | ||||
| { | { | ||||
| width = w; | width = w; | ||||
| @@ -56,3 +59,5 @@ int Layer::GetZ() | |||||
| return altitude; | return altitude; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -19,6 +19,9 @@ | |||||
| #include <stdint.h> | #include <stdint.h> | ||||
| namespace lol | |||||
| { | |||||
| class Layer | class Layer | ||||
| { | { | ||||
| public: | public: | ||||
| @@ -34,5 +37,7 @@ private: | |||||
| uint32_t *data; | uint32_t *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_LAYER_H__ | #endif // __DH_LAYER_H__ | ||||
| @@ -20,6 +20,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Map implementation class | * Map implementation class | ||||
| */ | */ | ||||
| @@ -176,3 +179,5 @@ int Map::GetHeight() | |||||
| return data->height * 32; | return data->height * 32; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #if !defined __DH_MAP_H__ | #if !defined __DH_MAP_H__ | ||||
| #define __DH_MAP_H__ | #define __DH_MAP_H__ | ||||
| namespace lol | |||||
| { | |||||
| class MapData; | class MapData; | ||||
| class Map | class Map | ||||
| @@ -34,5 +37,7 @@ private: | |||||
| MapData *data; | MapData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_MAP_H__ | #endif // __DH_MAP_H__ | ||||
| @@ -18,6 +18,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| static inline float det3(float a, float b, float c, | static inline float det3(float a, float b, float c, | ||||
| float d, float e, float f, | float d, float e, float f, | ||||
| float g, float h, float i) | float g, float h, float i) | ||||
| @@ -148,3 +151,5 @@ template<> mat4 mat4::rotate(float theta, float x, float y, float z) | |||||
| return ret; | return ret; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include <cmath> | #include <cmath> | ||||
| namespace lol | |||||
| { | |||||
| #define VECTOR_OP(elems, op) \ | #define VECTOR_OP(elems, op) \ | ||||
| template<typename U> \ | template<typename U> \ | ||||
| inline Vec##elems<T> operator op(Vec##elems<U> const &val) const \ | inline Vec##elems<T> operator op(Vec##elems<U> const &val) const \ | ||||
| @@ -278,5 +281,7 @@ template <typename T> struct Mat4 | |||||
| typedef Mat4<float> mat4; | typedef Mat4<float> mat4; | ||||
| typedef Mat4<int> mat4i; | typedef Mat4<int> mat4i; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_MATRIX_H__ | #endif // __DH_MATRIX_H__ | ||||
| @@ -20,6 +20,9 @@ | |||||
| #include <cstdlib> | #include <cstdlib> | ||||
| #include <stdint.h> | #include <stdint.h> | ||||
| namespace lol | |||||
| { | |||||
| /* Random float value */ | /* Random float value */ | ||||
| static inline float RandF() | static inline float RandF() | ||||
| { | { | ||||
| @@ -49,5 +52,7 @@ template <typename T> static inline T PotUp(T val) | |||||
| return val + 1; | return val + 1; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_NUMERIC_H__ | #endif // __DH_NUMERIC_H__ | ||||
| @@ -18,6 +18,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Profiler implementation class | * Profiler implementation class | ||||
| */ | */ | ||||
| @@ -79,3 +82,5 @@ float Profiler::GetMax(int id) | |||||
| return data[id].max; | return data[id].max; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -19,6 +19,9 @@ | |||||
| #include <stdint.h> | #include <stdint.h> | ||||
| namespace lol | |||||
| { | |||||
| class Profiler | class Profiler | ||||
| { | { | ||||
| public: | public: | ||||
| @@ -37,5 +40,7 @@ public: | |||||
| static float GetMax(int id); | static float GetMax(int id); | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_PROFILER_H__ | #endif // __DH_PROFILER_H__ | ||||
| @@ -23,6 +23,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Sample implementation class | * Sample implementation class | ||||
| */ | */ | ||||
| @@ -88,3 +91,5 @@ void Sample::Play() | |||||
| #endif | #endif | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -21,6 +21,9 @@ | |||||
| #include "entity.h" | #include "entity.h" | ||||
| namespace lol | |||||
| { | |||||
| class SampleData; | class SampleData; | ||||
| class Sample : public Entity | class Sample : public Entity | ||||
| @@ -42,5 +45,7 @@ private: | |||||
| SampleData *data; | SampleData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_SAMPLE_H__ | #endif // __DH_SAMPLE_H__ | ||||
| @@ -14,6 +14,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Sampler implementation class | * Sampler implementation class | ||||
| */ | */ | ||||
| @@ -57,3 +60,5 @@ void Sampler::PlaySample(int id) | |||||
| sample->Play(); | sample->Play(); | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -19,6 +19,9 @@ | |||||
| #include <stdint.h> | #include <stdint.h> | ||||
| namespace lol | |||||
| { | |||||
| class Sampler | class Sampler | ||||
| { | { | ||||
| public: | public: | ||||
| @@ -28,5 +31,7 @@ public: | |||||
| static void PlaySample(int id); | static void PlaySample(int id); | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_SAMPLER_H__ | #endif // __DH_SAMPLER_H__ | ||||
| @@ -24,6 +24,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| #include "lolgl.h" | #include "lolgl.h" | ||||
| namespace lol | |||||
| { | |||||
| struct Tile | struct Tile | ||||
| { | { | ||||
| uint32_t prio, code; | uint32_t prio, code; | ||||
| @@ -277,3 +280,5 @@ void Scene::Render() // XXX: rename to Blit() | |||||
| data->ntiles = 0; | data->ntiles = 0; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include <stdint.h> | #include <stdint.h> | ||||
| namespace lol | |||||
| { | |||||
| class SceneData; | class SceneData; | ||||
| class Scene | class Scene | ||||
| @@ -36,5 +39,7 @@ private: | |||||
| SceneData *data; | SceneData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_SCENE_H__ | #endif // __DH_SCENE_H__ | ||||
| @@ -19,6 +19,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| #include "sdlapp.h" | #include "sdlapp.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * SDL App implementation class | * SDL App implementation class | ||||
| */ | */ | ||||
| @@ -90,3 +93,5 @@ SdlApp::~SdlApp() | |||||
| free(data); | free(data); | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include "matrix.h" | #include "matrix.h" | ||||
| namespace lol | |||||
| { | |||||
| class SdlAppData; | class SdlAppData; | ||||
| class SdlApp | class SdlApp | ||||
| @@ -32,5 +35,7 @@ private: | |||||
| SdlAppData *data; | SdlAppData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_SDLAPP_H__ | #endif // __DH_SDLAPP_H__ | ||||
| @@ -17,6 +17,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| #include "sdlinput.h" | #include "sdlinput.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * SDL Input implementation class | * SDL Input implementation class | ||||
| */ | */ | ||||
| @@ -88,3 +91,5 @@ SdlInput::~SdlInput() | |||||
| delete data; | delete data; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include "entity.h" | #include "entity.h" | ||||
| namespace lol | |||||
| { | |||||
| class SdlInputData; | class SdlInputData; | ||||
| class SdlInput : public Entity | class SdlInput : public Entity | ||||
| @@ -33,5 +36,7 @@ private: | |||||
| SdlInputData *data; | SdlInputData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_SDLINPUT_H__ | #endif // __DH_SDLINPUT_H__ | ||||
| @@ -23,6 +23,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| #include "lolgl.h" | #include "lolgl.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Shader implementation class | * Shader implementation class | ||||
| */ | */ | ||||
| @@ -150,3 +153,5 @@ Shader::~Shader() | |||||
| delete data; | delete data; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -16,6 +16,9 @@ | |||||
| #if !defined __DH_SHADER_H__ | #if !defined __DH_SHADER_H__ | ||||
| #define __DH_SHADER_H__ | #define __DH_SHADER_H__ | ||||
| namespace lol | |||||
| { | |||||
| class ShaderData; | class ShaderData; | ||||
| class Shader | class Shader | ||||
| @@ -37,5 +40,7 @@ private: | |||||
| ShaderData *data; | ShaderData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_SHADER_H__ | #endif // __DH_SHADER_H__ | ||||
| @@ -18,6 +18,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Text implementation class | * Text implementation class | ||||
| */ | */ | ||||
| @@ -99,3 +102,5 @@ Text::~Text() | |||||
| delete data; | delete data; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include "entity.h" | #include "entity.h" | ||||
| namespace lol | |||||
| { | |||||
| class TextData; | class TextData; | ||||
| class Text : public Entity | class Text : public Entity | ||||
| @@ -45,5 +48,7 @@ private: | |||||
| TextData *data; | TextData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_TEXT_H__ | #endif // __DH_TEXT_H__ | ||||
| @@ -18,6 +18,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Ticker implementation class | * Ticker implementation class | ||||
| */ | */ | ||||
| @@ -373,3 +376,5 @@ int Ticker::Finished() | |||||
| return !data->nentities; | return !data->nentities; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -21,6 +21,9 @@ | |||||
| #include "entity.h" | #include "entity.h" | ||||
| namespace lol | |||||
| { | |||||
| class Ticker | class Ticker | ||||
| { | { | ||||
| public: | public: | ||||
| @@ -42,5 +45,7 @@ public: | |||||
| static int Finished(); | static int Finished(); | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_TICKER_H__ | #endif // __DH_TICKER_H__ | ||||
| @@ -16,6 +16,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Tiler implementation class | * Tiler implementation class | ||||
| */ | */ | ||||
| @@ -128,3 +131,5 @@ void Tiler::BlitTile(uint32_t code, int x, int y, int z, int o, | |||||
| tileset->BlitTile(code & 0xffff, x, y, z, o, vertex, texture); | tileset->BlitTile(code & 0xffff, x, y, z, o, vertex, texture); | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -19,6 +19,9 @@ | |||||
| #include <stdint.h> | #include <stdint.h> | ||||
| namespace lol | |||||
| { | |||||
| class Tiler | class Tiler | ||||
| { | { | ||||
| public: | public: | ||||
| @@ -33,5 +36,7 @@ public: | |||||
| float *vertex, float *texture); | float *vertex, float *texture); | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_TILER_H__ | #endif // __DH_TILER_H__ | ||||
| @@ -29,6 +29,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| #include "lolgl.h" | #include "lolgl.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * TileSet implementation class | * TileSet implementation class | ||||
| */ | */ | ||||
| @@ -242,3 +245,5 @@ void TileSet::BlitTile(uint32_t id, int x, int y, int z, int o, | |||||
| } | } | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -23,6 +23,9 @@ | |||||
| #include "entity.h" | #include "entity.h" | ||||
| namespace lol | |||||
| { | |||||
| class TileSetData; | class TileSetData; | ||||
| class TileSet : public Entity | class TileSet : public Entity | ||||
| @@ -48,5 +51,7 @@ private: | |||||
| TileSetData *data; | TileSetData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_TILESET_H__ | #endif // __DH_TILESET_H__ | ||||
| @@ -28,6 +28,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Timer implementation class | * Timer implementation class | ||||
| */ | */ | ||||
| @@ -126,3 +129,5 @@ void Timer::WaitMs(float deltams) | |||||
| (void)data->GetOrWait(deltams, false); | (void)data->GetOrWait(deltams, false); | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -16,6 +16,9 @@ | |||||
| #if !defined __DH_TIMER_H__ | #if !defined __DH_TIMER_H__ | ||||
| #define __DH_TIMER_H__ | #define __DH_TIMER_H__ | ||||
| namespace lol | |||||
| { | |||||
| class TimerData; | class TimerData; | ||||
| class Timer | class Timer | ||||
| @@ -32,5 +35,7 @@ private: | |||||
| TimerData *data; | TimerData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_TIMER_H__ | #endif // __DH_TIMER_H__ | ||||
| @@ -23,6 +23,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| #include "lolgl.h" | #include "lolgl.h" | ||||
| namespace lol | |||||
| { | |||||
| #if defined HAVE_GL_2X || defined HAVE_GLES_2X | #if defined HAVE_GL_2X || defined HAVE_GLES_2X | ||||
| Shader *stdshader; | Shader *stdshader; | ||||
| #endif | #endif | ||||
| @@ -233,3 +236,5 @@ int Video::GetHeight() | |||||
| return v[3]; | return v[3]; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -19,6 +19,9 @@ | |||||
| #include <stdint.h> | #include <stdint.h> | ||||
| namespace lol | |||||
| { | |||||
| class Video | class Video | ||||
| { | { | ||||
| public: | public: | ||||
| @@ -32,5 +35,7 @@ public: | |||||
| static int GetHeight(); | static int GetHeight(); | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_VIDEO_H__ | #endif // __DH_VIDEO_H__ | ||||
| @@ -19,6 +19,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * World implementation class | * World implementation class | ||||
| */ | */ | ||||
| @@ -74,3 +77,5 @@ int World::GetHeight() | |||||
| return data->height * 32; | return data->height * 32; | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include "entity.h" | #include "entity.h" | ||||
| namespace lol | |||||
| { | |||||
| class WorldData; | class WorldData; | ||||
| class World : public Entity | class World : public Entity | ||||
| @@ -41,5 +44,7 @@ private: | |||||
| WorldData *data; | WorldData *data; | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_WORLD_H__ | #endif // __DH_WORLD_H__ | ||||
| @@ -17,6 +17,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| /* | /* | ||||
| * Public WorldEntity class | * Public WorldEntity class | ||||
| */ | */ | ||||
| @@ -44,3 +47,5 @@ void WorldEntity::TickDraw(float deltams) | |||||
| Entity::TickDraw(deltams); | Entity::TickDraw(deltams); | ||||
| } | } | ||||
| } /* namespace lol */ | |||||
| @@ -18,6 +18,9 @@ | |||||
| #include "entity.h" | #include "entity.h" | ||||
| namespace lol | |||||
| { | |||||
| class WorldEntity : public Entity | class WorldEntity : public Entity | ||||
| { | { | ||||
| public: | public: | ||||
| @@ -40,5 +43,7 @@ protected: | |||||
| virtual void TickDraw(float deltams); | virtual void TickDraw(float deltams); | ||||
| }; | }; | ||||
| } /* namespace lol */ | |||||
| #endif // __DH_WORLDENTITY_H__ | #endif // __DH_WORLDENTITY_H__ | ||||
| @@ -19,6 +19,9 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| namespace lol | |||||
| { | |||||
| class MatrixTest : public CppUnit::TestCase | class MatrixTest : public CppUnit::TestCase | ||||
| { | { | ||||
| CPPUNIT_TEST_SUITE(MatrixTest); | CPPUNIT_TEST_SUITE(MatrixTest); | ||||
| @@ -114,3 +117,5 @@ private: | |||||
| CPPUNIT_TEST_SUITE_REGISTRATION(MatrixTest); | CPPUNIT_TEST_SUITE_REGISTRATION(MatrixTest); | ||||
| } /* namespace lol */ | |||||