mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 00:45:54 +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 <algorithm>
|
||||
|
||||
#include "picojson.h"
|
||||
#include "stb_image.h"
|
||||
#include "./picojson.h"
|
||||
#include "./stb_image.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
@ -253,9 +253,7 @@ class TinyGLTFLoader {
|
||||
#include <wordexp.h>
|
||||
#endif
|
||||
|
||||
using namespace tinygltf;
|
||||
|
||||
namespace {
|
||||
namespace tinygltf {
|
||||
|
||||
bool FileExists(const std::string &abs_filename) {
|
||||
bool ret;
|
||||
@ -1060,8 +1058,6 @@ bool ParseMaterial(Material &material, std::string &err,
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
bool TinyGLTFLoader::LoadFromString(Scene &scene, std::string &err,
|
||||
const char *str, unsigned int length,
|
||||
const std::string &baseDir) {
|
||||
@ -1316,6 +1312,8 @@ bool TinyGLTFLoader::LoadFromFile(Scene &scene, std::string &err,
|
||||
return ret;
|
||||
}
|
||||
|
||||
} // namespace tinygltf
|
||||
|
||||
#endif // TINYGLTF_LOADER_IMPLEMENTATION
|
||||
|
||||
#endif // TINY_GLTF_LOADER_H_
|
||||
|
Loading…
x
Reference in New Issue
Block a user