Changeset 686


Ignore:
Timestamp:
Feb 22, 2011, 2:39:14 PM (9 years ago)
Author:
sam
Message:

Put everything in the "lol" namespace. Better late than never.

Location:
trunk
Files:
78 edited

Legend:

Unmodified
Added
Removed
  • trunk/deushax/debugsprite.cpp

    r664 r686  
    1212
    1313#include "core.h"
     14
     15using namespace lol;
     16
    1417#include "debugsprite.h"
    1518
  • trunk/deushax/deushax.cpp

    r680 r686  
    1313
    1414#include "core.h"
     15
     16using namespace lol;
    1517
    1618#include "game.h"
  • trunk/deushax/game.cpp

    r289 r686  
    1111
    1212#include "core.h"
     13
     14using namespace lol;
     15
    1316#include "game.h"
    1417
  • trunk/deushax/gtk/editor.cpp

    r327 r686  
    1717
    1818#include "core.h"
     19
     20using namespace lol;
     21
    1922#include "glmapview.h"
    2023#include "debugfps.h"
  • trunk/deushax/gtk/glmapview.cpp

    r617 r686  
    1313
    1414#include "core.h"
     15
     16using namespace lol;
     17
    1518#include "glmapview.h"
    1619
  • trunk/deushax/mapviewer.cpp

    r289 r686  
    1111
    1212#include "core.h"
     13
     14using namespace lol;
     15
    1316#include "mapviewer.h"
    1417
  • trunk/monsterz/board.cpp

    r664 r686  
    2020
    2121#include "core.h"
     22
     23using namespace lol;
     24
    2225#include "board.h"
    2326#include "piece.h"
  • trunk/monsterz/interface.cpp

    r664 r686  
    1919
    2020#include "core.h"
     21
     22using namespace lol;
     23
    2124#include "interface.h"
    2225#include "title.h"
  • trunk/monsterz/mash.cpp

    r664 r686  
    1818
    1919#include "core.h"
     20
     21using namespace lol;
     22
    2023#include "mash.h"
    2124#include "monsterz.h"
  • trunk/monsterz/monsterz.cpp

    r684 r686  
    1919#include "core.h"
    2020#include "lolgl.h"
     21
     22using namespace lol;
    2123
    2224#if defined HAVE_GLES_2X
  • trunk/monsterz/piece.cpp

    r664 r686  
    1717
    1818#include "core.h"
     19
     20using namespace lol;
     21
    1922#include "piece.h"
    2023#include "monsterz.h"
  • trunk/monsterz/thumbs.cpp

    r664 r686  
    1919
    2020#include "core.h"
     21
     22using namespace lol;
     23
    2124#include "thumbs.h"
    2225#include "monsterz.h"
  • trunk/monsterz/title.cpp

    r664 r686  
    2525
    2626#include "core.h"
     27
     28using namespace lol;
     29
    2730#include "monsterz.h"
    2831#include "title.h"
  • trunk/src/audio.cpp

    r680 r686  
    2222#include "core.h"
    2323
     24namespace lol
     25{
     26
    2427/*
    2528 * Public Audio class
     
    3336}
    3437
     38} /* namespace lol */
     39
  • trunk/src/audio.h

    r253 r686  
    2020#include <stdint.h>
    2121
     22namespace lol
     23{
     24
    2225class Audio
    2326{
     
    2629};
    2730
     31} /* namespace lol */
     32
    2833#endif // __DH_AUDIO_H__
    2934
  • trunk/src/bitfield.h

    r221 r686  
    1818
    1919#include <stdint.h>
     20
     21namespace lol
     22{
    2023
    2124template class BitField<unsigned int COUNT>
     
    4750};
    4851
     52} /* namespace lol */
     53
    4954#endif // __DH_BITFIELD_H__
    5055
  • trunk/src/debugfps.cpp

    r664 r686  
    1717#include "core.h"
    1818#include "debugfps.h"
     19
     20namespace lol
     21{
    1922
    2023/*
     
    105108}
    106109
     110} /* namespace lol */
     111
  • trunk/src/debugfps.h

    r282 r686  
    1919#include "entity.h"
    2020
     21namespace lol
     22{
     23
    2124class DebugFpsData;
    2225
     
    3437};
    3538
     39} /* namespace lol */
     40
    3641#endif // __DH_DEBUGFPS_H__
    3742
  • trunk/src/debugrecord.cpp

    r619 r686  
    2222#include "core.h"
    2323#include "debugrecord.h"
     24
     25namespace lol
     26{
    2427
    2528/*
     
    103106    delete data;
    104107}
     108
     109} /* namespace lol */
     110
  • trunk/src/debugrecord.h

    r615 r686  
    1919#include "entity.h"
    2020
     21namespace lol
     22{
     23
    2124class DebugRecordData;
    2225
     
    3538};
    3639
     40} /* namespace lol */
     41
    3742#endif // __DH_DEBUGRECORD_H__
    3843
  • trunk/src/debugsphere.cpp

    r674 r686  
    2525#include "lolgl.h"
    2626#include "debugsphere.h"
     27
     28namespace lol
     29{
    2730
    2831/*
     
    202205}
    203206
     207} /* namespace lol */
     208
  • trunk/src/debugsphere.h

    r221 r686  
    1919#include "entity.h"
    2020
     21namespace lol
     22{
     23
    2124class DebugSphereData;
    2225
     
    3538};
    3639
     40} /* namespace lol */
     41
    3742#endif // __DH_DEBUGSPHERE_H__
    3843
  • trunk/src/debugstats.cpp

    r259 r686  
    1717#include "core.h"
    1818#include "debugstats.h"
     19
     20namespace lol
     21{
    1922
    2023/*
     
    6063}
    6164
     65} /* namespace lol */
     66
  • trunk/src/debugstats.h

    r221 r686  
    1919#include "entity.h"
    2020
     21namespace lol
     22{
     23
    2124class DebugStatsData;
    2225
     
    3437};
    3538
     39} /* namespace lol */
     40
    3641#endif // __DH_DEBUGSTATS_H__
    3742
  • trunk/src/dict.cpp

    r658 r686  
    2222#   define strcasecmp _stricmp
    2323#endif
     24
     25namespace lol
     26{
    2427
    2528/*
     
    143146}
    144147
     148} /* namespace lol */
     149
  • trunk/src/dict.h

    r221 r686  
    1919#include "entity.h"
    2020
     21namespace lol
     22{
     23
    2124class DictData;
    2225
     
    3740};
    3841
     42} /* namespace lol */
     43
    3944#endif // __DH_DICT_H__
    4045
  • trunk/src/eglapp.cpp

    r683 r686  
    2727#include "lolgl.h"
    2828#include "eglapp.h"
     29
     30namespace lol
     31{
    2932
    3033/*
     
    190193}
    191194
     195} /* namespace lol */
     196
  • trunk/src/eglapp.h

    r682 r686  
    1919#include "matrix.h"
    2020
     21namespace lol
     22{
     23
    2124class EglAppData;
    2225
     
    3336};
    3437
     38} /* namespace lol */
     39
    3540#endif // __DH_EGLAPP_H__
    3641
  • trunk/src/emitter.cpp

    r664 r686  
    1717
    1818#include "core.h"
     19
     20namespace lol
     21{
    1922
    2023/*
     
    9497}
    9598
     99} /* namespace lol */
     100
  • trunk/src/emitter.h

    r664 r686  
    1919#include "entity.h"
    2020
     21namespace lol
     22{
     23
    2124class EmitterData;
    2225
     
    3740};
    3841
     42} /* namespace lol */
     43
    3944#endif // __DH_EMITTER_H__
    4045
  • trunk/src/entity.cpp

    r658 r686  
    1717
    1818#include "core.h"
     19
     20namespace lol
     21{
    1922
    2023/*
     
    6770}
    6871
     72} /* namespace lol */
     73
  • trunk/src/entity.h

    r658 r686  
    2121
    2222#include <stdint.h>
     23
     24namespace lol
     25{
    2326
    2427class Entity
     
    8083};
    8184
     85} /* namespace lol */
     86
    8287#endif // __DH_ENTITY_H__
    8388
  • trunk/src/font.cpp

    r664 r686  
    1717
    1818#include "core.h"
     19
     20namespace lol
     21{
    1922
    2023/*
     
    8689}
    8790
     91} /* namespace lol */
     92
  • trunk/src/font.h

    r664 r686  
    1818
    1919#include "entity.h"
     20
     21namespace lol
     22{
    2023
    2124class FontData;
     
    4144};
    4245
     46} /* namespace lol */
     47
    4348#endif // __DH_FONT_H__
    4449
  • trunk/src/forge.cpp

    r221 r686  
    1414
    1515#include "core.h"
     16
     17namespace lol
     18{
    1619
    1720/*
     
    5760}
    5861
     62} /* namespace lol */
     63
  • trunk/src/forge.h

    r221 r686  
    2020#include "font.h"
    2121
     22namespace lol
     23{
     24
    2225class Forge
    2326{
     
    2831};
    2932
     33} /* namespace lol */
     34
    3035#endif // __DH_FORGE_H__
    3136
  • trunk/src/hash.cpp

    r669 r686  
    1414
    1515#include "core.h"
     16
     17namespace lol
     18{
    1619
    1720/*
     
    5760}
    5861
     62} /* namespace lol */
     63
  • trunk/src/hash.h

    r669 r686  
    1717#define __DH_HASH_H__
    1818
     19namespace lol
     20{
     21
    1922class Hash
    2023{
     
    2326};
    2427
     28} /* namespace lol */
     29
    2530#endif // __DH_HASH_H__
    2631
  • trunk/src/input.cpp

    r680 r686  
    2222
    2323#include "core.h"
     24
     25namespace lol
     26{
    2427
    2528/*
     
    175178}
    176179
     180} /* namespace lol */
     181
  • trunk/src/input.h

    r664 r686  
    1818
    1919#include "matrix.h"
     20
     21namespace lol
     22{
    2023
    2124class WorldEntity;
     
    3942};
    4043
     44} /* namespace lol */
     45
    4146#endif // __DH_INPUT_H__
    4247
  • trunk/src/layer.cpp

    r289 r686  
    1616
    1717#include "core.h"
     18
     19namespace lol
     20{
    1821
    1922Layer::Layer(int w, int h, int z, int o, uint32_t *in_data)
     
    5760}
    5861
     62} /* namespace lol */
     63
  • trunk/src/layer.h

    r289 r686  
    2020#include <stdint.h>
    2121
     22namespace lol
     23{
     24
    2225class Layer
    2326{
     
    3538};
    3639
     40} /* namespace lol */
     41
    3742#endif // __DH_LAYER_H__
    3843
  • trunk/src/map.cpp

    r633 r686  
    2020
    2121#include "core.h"
     22
     23namespace lol
     24{
    2225
    2326/*
     
    177180}
    178181
     182} /* namespace lol */
     183
  • trunk/src/map.h

    r289 r686  
    1919#define __DH_MAP_H__
    2020
     21namespace lol
     22{
     23
    2124class MapData;
    2225
     
    3538};
    3639
     40} /* namespace lol */
     41
    3742#endif // __DH_MAP_H__
    3843
  • trunk/src/matrix.cpp

    r664 r686  
    1818
    1919#include "core.h"
     20
     21namespace lol
     22{
    2023
    2124static inline float det3(float a, float b, float c,
     
    149152}
    150153
     154} /* namespace lol */
     155
  • trunk/src/matrix.h

    r664 r686  
    1818
    1919#include <cmath>
     20
     21namespace lol
     22{
    2023
    2124#define VECTOR_OP(elems, op) \
     
    279282typedef Mat4<int> mat4i;
    280283
     284} /* namespace lol */
     285
    281286#endif // __DH_MATRIX_H__
    282287
  • trunk/src/numeric.h

    r296 r686  
    2020#include <cstdlib>
    2121#include <stdint.h>
     22
     23namespace lol
     24{
    2225
    2326/* Random float value */
     
    5053}
    5154
     55} /* namespace lol */
     56
    5257#endif // __DH_NUMERIC_H__
    5358
  • trunk/src/profiler.cpp

    r221 r686  
    1818
    1919#include "core.h"
     20
     21namespace lol
     22{
    2023
    2124/*
     
    8083}
    8184
     85} /* namespace lol */
     86
  • trunk/src/profiler.h

    r221 r686  
    2020#include <stdint.h>
    2121
     22namespace lol
     23{
     24
    2225class Profiler
    2326{
     
    3841};
    3942
     43} /* namespace lol */
     44
    4045#endif // __DH_PROFILER_H__
    4146
  • trunk/src/sample.cpp

    r680 r686  
    2323
    2424#include "core.h"
     25
     26namespace lol
     27{
    2528
    2629/*
     
    8992}
    9093
     94} /* namespace lol */
     95
  • trunk/src/sample.h

    r251 r686  
    2222#include "entity.h"
    2323
     24namespace lol
     25{
     26
    2427class SampleData;
    2528
     
    4346};
    4447
     48} /* namespace lol */
     49
    4550#endif // __DH_SAMPLE_H__
    4651
  • trunk/src/sampler.cpp

    r253 r686  
    1414
    1515#include "core.h"
     16
     17namespace lol
     18{
    1619
    1720/*
     
    5861}
    5962
     63} /* namespace lol */
     64
  • trunk/src/sampler.h

    r251 r686  
    2020#include <stdint.h>
    2121
     22namespace lol
     23{
     24
    2225class Sampler
    2326{
     
    2932};
    3033
     34} /* namespace lol */
     35
    3136#endif // __DH_SAMPLER_H__
    3237
  • trunk/src/scene.cpp

    r683 r686  
    2424#include "core.h"
    2525#include "lolgl.h"
     26
     27namespace lol
     28{
    2629
    2730struct Tile
     
    278281}
    279282
     283} /* namespace lol */
     284
  • trunk/src/scene.h

    r289 r686  
    1919#include <stdint.h>
    2020
     21namespace lol
     22{
     23
    2124class SceneData;
    2225
     
    3740};
    3841
     42} /* namespace lol */
     43
    3944#endif // __DH_SCENE_H__
    4045
  • trunk/src/sdlapp.cpp

    r680 r686  
    1919#include "core.h"
    2020#include "sdlapp.h"
     21
     22namespace lol
     23{
    2124
    2225/*
     
    9194}
    9295
     96} /* namespace lol */
     97
  • trunk/src/sdlapp.h

    r680 r686  
    1919#include "matrix.h"
    2020
     21namespace lol
     22{
     23
    2124class SdlAppData;
    2225
     
    3336};
    3437
     38} /* namespace lol */
     39
    3540#endif // __DH_SDLAPP_H__
    3641
  • trunk/src/sdlinput.cpp

    r664 r686  
    1717#include "core.h"
    1818#include "sdlinput.h"
     19
     20namespace lol
     21{
    1922
    2023/*
     
    8992}
    9093
     94} /* namespace lol */
     95
  • trunk/src/sdlinput.h

    r221 r686  
    1919#include "entity.h"
    2020
     21namespace lol
     22{
     23
    2124class SdlInputData;
    2225
     
    3437};
    3538
     39} /* namespace lol */
     40
    3641#endif // __DH_SDLINPUT_H__
    3742
  • trunk/src/shader.cpp

    r674 r686  
    2323#include "core.h"
    2424#include "lolgl.h"
     25
     26namespace lol
     27{
    2528
    2629/*
     
    151154}
    152155
     156} /* namespace lol */
     157
  • trunk/src/shader.h

    r668 r686  
    1616#if !defined __DH_SHADER_H__
    1717#define __DH_SHADER_H__
     18
     19namespace lol
     20{
    1821
    1922class ShaderData;
     
    3841};
    3942
     43} /* namespace lol */
     44
    4045#endif // __DH_SHADER_H__
    4146
  • trunk/src/text.cpp

    r664 r686  
    1818
    1919#include "core.h"
     20
     21namespace lol
     22{
    2023
    2124/*
     
    100103}
    101104
     105} /* namespace lol */
     106
  • trunk/src/text.h

    r664 r686  
    1818
    1919#include "entity.h"
     20
     21namespace lol
     22{
    2023
    2124class TextData;
     
    4649};
    4750
     51} /* namespace lol */
     52
    4853#endif // __DH_TEXT_H__
    4954
  • trunk/src/ticker.cpp

    r658 r686  
    1818
    1919#include "core.h"
     20
     21namespace lol
     22{
    2023
    2124/*
     
    374377}
    375378
     379} /* namespace lol */
     380
  • trunk/src/ticker.h

    r619 r686  
    2222#include "entity.h"
    2323
     24namespace lol
     25{
     26
    2427class Ticker
    2528{
     
    4346};
    4447
     48} /* namespace lol */
     49
    4550#endif // __DH_TICKER_H__
    4651
  • trunk/src/tiler.cpp

    r664 r686  
    1616
    1717#include "core.h"
     18
     19namespace lol
     20{
    1821
    1922/*
     
    129132}
    130133
     134} /* namespace lol */
     135
  • trunk/src/tiler.h

    r664 r686  
    2020#include <stdint.h>
    2121
     22namespace lol
     23{
     24
    2225class Tiler
    2326{
     
    3437};
    3538
     39} /* namespace lol */
     40
    3641#endif // __DH_TILER_H__
    3742
  • trunk/src/tileset.cpp

    r680 r686  
    2929#include "core.h"
    3030#include "lolgl.h"
     31
     32namespace lol
     33{
    3134
    3235/*
     
    243246}
    244247
     248} /* namespace lol */
     249
  • trunk/src/tileset.h

    r664 r686  
    2323
    2424#include "entity.h"
     25
     26namespace lol
     27{
    2528
    2629class TileSetData;
     
    4952};
    5053
     54} /* namespace lol */
     55
    5156#endif // __DH_TILESET_H__
    5257
  • trunk/src/timer.cpp

    r636 r686  
    2828
    2929#include "core.h"
     30
     31namespace lol
     32{
    3033
    3134/*
     
    127130}
    128131
     132} /* namespace lol */
     133
  • trunk/src/timer.h

    r221 r686  
    1717#define __DH_TIMER_H__
    1818
     19namespace lol
     20{
     21
    1922class TimerData;
    2023
     
    3336};
    3437
     38} /* namespace lol */
     39
    3540#endif // __DH_TIMER_H__
    3641
  • trunk/src/video.cpp

    r683 r686  
    2323#include "core.h"
    2424#include "lolgl.h"
     25
     26namespace lol
     27{
    2528
    2629#if defined HAVE_GL_2X || defined HAVE_GLES_2X
     
    234237}
    235238
     239} /* namespace lol */
     240
  • trunk/src/video.h

    r653 r686  
    2020#include <stdint.h>
    2121
     22namespace lol
     23{
     24
    2225class Video
    2326{
     
    3336};
    3437
     38} /* namespace lol */
     39
    3540#endif // __DH_VIDEO_H__
    3641
  • trunk/src/world.cpp

    r259 r686  
    1919
    2020#include "core.h"
     21
     22namespace lol
     23{
    2124
    2225/*
     
    7578}
    7679
     80} /* namespace lol */
     81
  • trunk/src/world.h

    r221 r686  
    1818
    1919#include "entity.h"
     20
     21namespace lol
     22{
    2023
    2124class WorldData;
     
    4245};
    4346
     47} /* namespace lol */
     48
    4449#endif // __DH_WORLD_H__
    4550
  • trunk/src/worldentity.cpp

    r312 r686  
    1717
    1818#include "core.h"
     19
     20namespace lol
     21{
    1922
    2023/*
     
    4548}
    4649
     50} /* namespace lol */
     51
  • trunk/src/worldentity.h

    r664 r686  
    1818
    1919#include "entity.h"
     20
     21namespace lol
     22{
    2023
    2124class WorldEntity : public Entity
     
    4144};
    4245
     46} /* namespace lol */
     47
    4348#endif // __DH_WORLDENTITY_H__
    4449
  • trunk/test/matrix.cpp

    r664 r686  
    1919
    2020#include "core.h"
     21
     22namespace lol
     23{
    2124
    2225class MatrixTest : public CppUnit::TestCase
     
    115118CPPUNIT_TEST_SUITE_REGISTRATION(MatrixTest);
    116119
     120} /* namespace lol */
     121
Note: See TracChangeset for help on using the changeset viewer.