mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-06-04 11:25:59 +08:00
Fix where stb image is actually implemented
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>
This commit is contained in:
parent
1340e62848
commit
088aa0210f
@ -3,7 +3,6 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#define TINYGLTF_IMPLEMENTATION
|
#define TINYGLTF_IMPLEMENTATION
|
||||||
#define STB_IMAGE_IMPLEMENTATION
|
|
||||||
#include "tiny_gltf.h"
|
#include "tiny_gltf.h"
|
||||||
|
|
||||||
namespace example {
|
namespace example {
|
||||||
@ -17,9 +16,10 @@ static std::string GetFilePathExtension(const std::string &FileName) {
|
|||||||
///
|
///
|
||||||
/// Loads glTF 2.0 mesh
|
/// Loads glTF 2.0 mesh
|
||||||
///
|
///
|
||||||
bool LoadGLTF(const std::string &filename, float scale, std::vector<Mesh<float> > *meshes, std::vector<Material> *materials, std::vector<Texture> *textures)
|
bool LoadGLTF(const std::string &filename, float scale,
|
||||||
{
|
std::vector<Mesh<float> > *meshes,
|
||||||
|
std::vector<Material> *materials,
|
||||||
|
std::vector<Texture> *textures) {
|
||||||
// TODO(syoyo): Implement
|
// TODO(syoyo): Implement
|
||||||
// TODO(syoyo): Texture
|
// TODO(syoyo): Texture
|
||||||
// TODO(syoyo): Material
|
// TODO(syoyo): Material
|
||||||
@ -50,4 +50,4 @@ bool LoadGLTF(const std::string &filename, float scale, std::vector<Mesh<float>
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace example
|
} // namespace example
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
|
|
||||||
#define STB_IMAGE_IMPLEMENTATION
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
#include "tiny_gltf.h"
|
#include "stb_image.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user