Ver código fonte

sys: make a few functions lowercase.

legacy
Sam Hocevar 8 anos atrás
pai
commit
6a35a64dd5
23 arquivos alterados com 36 adições e 36 exclusões
  1. +1
    -1
      doc/samples/btphystest.cpp
  2. +1
    -1
      doc/samples/meshviewer/meshviewer.cpp
  3. +1
    -1
      doc/samples/nacl_phystest.cpp
  4. +1
    -1
      doc/tutorial/01_triangle.cpp
  5. +1
    -1
      doc/tutorial/02_cube.cpp
  6. +1
    -1
      doc/tutorial/03_noise.cpp
  7. +1
    -1
      doc/tutorial/04_texture.cpp
  8. +1
    -1
      doc/tutorial/05_easymesh.cpp
  9. +1
    -1
      doc/tutorial/06_sprite.cpp
  10. +1
    -1
      doc/tutorial/07_input.cpp
  11. +1
    -1
      doc/tutorial/08_fbo.cpp
  12. +1
    -1
      doc/tutorial/11_fractal.cpp
  13. +1
    -1
      doc/tutorial/12_voronoi.cpp
  14. +1
    -1
      doc/tutorial/13_shader_builder.cpp
  15. +1
    -1
      doc/tutorial/14_lol_lua.cpp
  16. +1
    -1
      src/image/codec/gdiplus-image.cpp
  17. +1
    -1
      src/image/codec/imlib2-image.cpp
  18. +1
    -1
      src/image/codec/sdl-image.cpp
  19. +5
    -5
      src/lol/sys/init.h
  20. +1
    -1
      src/lolua/baselua.cpp
  21. +1
    -1
      src/sample.cpp
  22. +10
    -10
      src/sys/init.cpp
  23. +1
    -1
      src/sys/threadtypes.cpp

+ 1
- 1
doc/samples/btphystest.cpp Ver arquivo

@@ -760,7 +760,7 @@ void CatShaderData::SetupShaderDatas(mat4 const &model)

int main(int argc, char **argv)
{
System::Init(argc, argv);
sys::init(argc, argv);

Application app("BtPhysTest", ivec2(1280, 960), 60.0f);



+ 1
- 1
doc/samples/meshviewer/meshviewer.cpp Ver arquivo

@@ -395,7 +395,7 @@ void MeshViewer::TickDraw(float seconds, Scene &scene)
//The basic main --------------------------------------------------------------
int main(int argc, char **argv)
{
System::Init(argc, argv);
sys::init(argc, argv);

Application app("MeshViewer", ivec2((int)DEFAULT_WIDTH, (int)DEFAULT_HEIGHT), 60.0f);
if (argc > 1)


+ 1
- 1
doc/samples/nacl_phystest.cpp Ver arquivo

@@ -112,7 +112,7 @@ Nacl_PhysTest::~Nacl_PhysTest()

int main(int argc, char **argv)
{
System::Init(argc, argv);
sys::init(argc, argv);

Application app("Nacl_PhysTest", ivec2(1280, 960), 60.0f);



+ 1
- 1
doc/tutorial/01_triangle.cpp Ver arquivo

@@ -71,7 +71,7 @@ private:

int main(int argc, char **argv)
{
System::Init(argc, argv);
sys::init(argc, argv);

Application app("Tutorial 1: Triangle", ivec2(640, 480), 60.0f);



+ 1
- 1
doc/tutorial/02_cube.cpp Ver arquivo

@@ -134,7 +134,7 @@ private:

int main(int argc, char **argv)
{
System::Init(argc, argv);
sys::init(argc, argv);

Application app("Tutorial 2: Cube", ivec2(640, 480), 60.0f);



+ 1
- 1
doc/tutorial/03_noise.cpp Ver arquivo

@@ -81,7 +81,7 @@ private:

int main(int argc, char **argv)
{
System::Init(argc, argv);
sys::init(argc, argv);

Application app("Tutorial 3: Noise", ivec2(1280, 720), 60.0f);



+ 1
- 1
doc/tutorial/04_texture.cpp Ver arquivo

@@ -111,7 +111,7 @@ private:

int main(int argc, char **argv)
{
System::Init(argc, argv);
sys::init(argc, argv);

Application app("Tutorial 4: Texture", ivec2(1280, 720), 60.0f);



+ 1
- 1
doc/tutorial/05_easymesh.cpp Ver arquivo

@@ -165,7 +165,7 @@ private:

int main(int argc, char **argv)
{
System::Init(argc, argv);
sys::init(argc, argv);

Application app("Tutorial 5: EasyMesh", ivec2(960, 600), 60.0f);
new EasyMeshTutorial();


+ 1
- 1
doc/tutorial/06_sprite.cpp Ver arquivo

@@ -98,7 +98,7 @@ private:

int main(int argc, char **argv)
{
System::Init(argc, argv);
sys::init(argc, argv);

Application app("Tutorial 6: Sprite", ivec2(640, 480), 60.0f);
new SpriteTutorial();


+ 1
- 1
doc/tutorial/07_input.cpp Ver arquivo

@@ -253,7 +253,7 @@ private:

int main(int argc, char **argv)
{
System::Init(argc, argv);
sys::init(argc, argv);

Application app("Tutorial 7: Input", ivec2(640, 480), 60.0f);



+ 1
- 1
doc/tutorial/08_fbo.cpp Ver arquivo

@@ -131,7 +131,7 @@ private:

int main(int argc, char **argv)
{
System::Init(argc, argv);
sys::init(argc, argv);

Application app("Tutorial 08: Framebuffer Object", ivec2(512, 512), 60.0f);



+ 1
- 1
doc/tutorial/11_fractal.cpp Ver arquivo

@@ -547,7 +547,7 @@ int main(int argc, char **argv)
{
ivec2 window_size(640, 480);

System::Init(argc, argv);
sys::init(argc, argv);
Application app("Tutorial 3: Fractal", window_size, 60.0f);

new DebugFps(5, 5);


+ 1
- 1
doc/tutorial/12_voronoi.cpp Ver arquivo

@@ -404,7 +404,7 @@ private:

int main(int argc, char **argv)
{
System::Init(argc, argv);
sys::init(argc, argv);

Application app("Tutorial 12: Jump Flooding Algorithm & Voronoi", ivec2(512, 512), 60.0f);



+ 1
- 1
doc/tutorial/13_shader_builder.cpp Ver arquivo

@@ -122,7 +122,7 @@ public:

int main(int argc, char **argv)
{
System::Init(argc, argv);
sys::init(argc, argv);

Application app("Tutorial 13: Shader Builder", ivec2(1280, 720), 60.0f);



+ 1
- 1
doc/tutorial/14_lol_lua.cpp Ver arquivo

@@ -193,7 +193,7 @@ public:
//-----------------------------------------------------------------------------
int main(int argc, char **argv)
{
System::Init(argc, argv);
sys::init(argc, argv);

Application app("Tutorial 14: Lolua Demo", ivec2(800, 600), 60.0f);



+ 1
- 1
src/image/codec/gdiplus-image.cpp Ver arquivo

@@ -61,7 +61,7 @@ bool GdiPlusImageCodec::Load(Image *image, char const *path)
return false;
}

array<String> pathlist = System::GetPathList(path);
array<String> pathlist = sys::get_path_list(path);
Gdiplus::Bitmap *bitmap = nullptr;
for (auto fullpath : pathlist)
{


+ 1
- 1
src/image/codec/imlib2-image.cpp Ver arquivo

@@ -45,7 +45,7 @@ bool Imlib2ImageCodec::Load(Image *image, char const *path)
{
Imlib_Image im = nullptr;

for (auto candidate : System::GetPathList(path))
for (auto candidate : sys::get_path_list(path))
{
im = imlib_load_image(candidate.C());
if (im)


+ 1
- 1
src/image/codec/sdl-image.cpp Ver arquivo

@@ -50,7 +50,7 @@ bool SdlImageCodec::Load(Image *image, char const *path)
{
SDL_Surface *surface = nullptr;

for (auto candidate : System::GetPathList(path))
for (auto candidate : sys::get_path_list(path))
{
surface = IMG_Load(candidate.C());
if (surface)


+ 5
- 5
src/lol/sys/init.h Ver arquivo

@@ -42,18 +42,18 @@ namespace lol
* not as clean as the rest of the framework.
*/

namespace System
namespace sys
{

extern void Init(int argc, char *argv[],
extern void init(int argc, char *argv[],
String const &projectdir = LOL_CONFIG_PROJECTDIR,
String const &solutiondir = LOL_CONFIG_SOLUTIONDIR,
String const &sourcesubdir = LOL_CONFIG_SOURCESUBDIR);

extern void AddDataDir(String const &dir);
extern array<String> GetPathList(String const &file);
extern void add_data_dir(String const &dir);
extern array<String> get_path_list(String const &file);

} /* namespace System */
} /* namespace sys */

} /* namespace lol */


+ 1
- 1
src/lolua/baselua.cpp Ver arquivo

@@ -58,7 +58,7 @@ class LuaBaseData
int status = LUA_ERRFILE;

File f;
for (auto candidate : System::GetPathList(filename))
for (auto candidate : sys::get_path_list(filename))
{
f.Open(candidate, FileAccess::Read);
if (f.IsValid())


+ 1
- 1
src/sample.cpp Ver arquivo

@@ -58,7 +58,7 @@ Sample::Sample(char const *path)
data->m_name = String("<sample> ") + path;

#if defined LOL_USE_SDL_MIXER
for (auto candidate : System::GetPathList(path))
for (auto candidate : sys::get_path_list(path))
{
data->m_chunk = Mix_LoadWAV(candidate.C());
if (data->m_chunk)


+ 10
- 10
src/sys/init.cpp Ver arquivo

@@ -27,7 +27,7 @@
namespace lol
{

namespace System
namespace sys
{

#if _WIN32
@@ -38,7 +38,7 @@ namespace System

static array<String> data_dir;

void Init(int argc, char *argv[],
void init(int argc, char *argv[],
String const &projectdir,
String const &solutiondir,
String const &sourcesubdir)
@@ -95,20 +95,20 @@ void Init(int argc, char *argv[],
String rootdir = binarydir;
if (rootdir.count() && rootdir.last() != SEPARATOR)
rootdir += SEPARATOR;
AddDataDir(rootdir);
add_data_dir(rootdir);

/* This data dir is for engine stuff */
rootdir = solutiondir;
if (rootdir.count() && rootdir.last() != SEPARATOR)
rootdir += SEPARATOR;
rootdir += "../src/"; /* FIXME: use SEPARATOR? */
AddDataDir(rootdir);
add_data_dir(rootdir);

/* This data dir is for project-specific stuff */
rootdir = projectdir;
if (rootdir.count() && rootdir.last() != SEPARATOR)
rootdir += SEPARATOR;
AddDataDir(rootdir);
add_data_dir(rootdir);

got_rootdir = true;
}
@@ -132,11 +132,11 @@ void Init(int argc, char *argv[],
rootdir += "../";
}
rootdir += "src/";
AddDataDir(rootdir);
add_data_dir(rootdir);

/* This data dir is for project-specific stuff */
rootdir = binarydir;
AddDataDir(rootdir);
add_data_dir(rootdir);

got_rootdir = true;
}
@@ -151,12 +151,12 @@ void Init(int argc, char *argv[],
* Data directory handling
*/

void AddDataDir(String const &dir)
void add_data_dir(String const &dir)
{
data_dir << dir;
}

array<String> GetPathList(String const &file)
array<String> get_path_list(String const &file)
{
array<String> ret;

@@ -172,7 +172,7 @@ array<String> GetPathList(String const &file)
return ret;
}

} /* namespace System */
} /* namespace sys */

} /* namespace lol */


+ 1
- 1
src/sys/threadtypes.cpp Ver arquivo

@@ -52,7 +52,7 @@ public:
protected:
virtual bool DoWork()
{
array<String> pathlist = System::GetPathList(m_path);
array<String> pathlist = sys::get_path_list(m_path);
File f;
for (String path : pathlist)
{


Carregando…
Cancelar
Salvar