mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 12:25:53 +08:00
Apply cpplint and format source code.
This commit is contained in:
parent
41426b6134
commit
e1bef8cacb
@ -244,8 +244,8 @@ class TinyGLTFLoader {
|
|||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
#include "picojson.h"
|
#include "./picojson.h"
|
||||||
#include "stb_image.h"
|
#include "./stb_image.h"
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
@ -253,9 +253,7 @@ class TinyGLTFLoader {
|
|||||||
#include <wordexp.h>
|
#include <wordexp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace tinygltf;
|
namespace tinygltf {
|
||||||
|
|
||||||
namespace {
|
|
||||||
|
|
||||||
bool FileExists(const std::string &abs_filename) {
|
bool FileExists(const std::string &abs_filename) {
|
||||||
bool ret;
|
bool ret;
|
||||||
@ -1060,8 +1058,6 @@ bool ParseMaterial(Material &material, std::string &err,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
|
||||||
|
|
||||||
bool TinyGLTFLoader::LoadFromString(Scene &scene, std::string &err,
|
bool TinyGLTFLoader::LoadFromString(Scene &scene, std::string &err,
|
||||||
const char *str, unsigned int length,
|
const char *str, unsigned int length,
|
||||||
const std::string &baseDir) {
|
const std::string &baseDir) {
|
||||||
@ -1316,6 +1312,8 @@ bool TinyGLTFLoader::LoadFromFile(Scene &scene, std::string &err,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace tinygltf
|
||||||
|
|
||||||
#endif // TINYGLTF_LOADER_IMPLEMENTATION
|
#endif // TINYGLTF_LOADER_IMPLEMENTATION
|
||||||
|
|
||||||
#endif // TINY_GLTF_LOADER_H_
|
#endif // TINY_GLTF_LOADER_H_
|
||||||
|
Loading…
x
Reference in New Issue
Block a user