mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-06 07:15:12 +08:00
Add language tag on code snippets in README
This commit is contained in:
parent
e3a7aef197
commit
d93364e63f
@ -72,7 +72,7 @@ Copy `stb_image.h`, `json.hpp` and `tiny_gltf.h` to your project.
|
|||||||
|
|
||||||
### Loading glTF 2.0 model
|
### Loading glTF 2.0 model
|
||||||
|
|
||||||
```
|
```c++
|
||||||
// Define these only in *one* .cc file.
|
// Define these only in *one* .cc file.
|
||||||
#define TINYGLTF_IMPLEMENTATION
|
#define TINYGLTF_IMPLEMENTATION
|
||||||
#define STB_IMAGE_IMPLEMENTATION
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
@ -118,11 +118,13 @@ Git clone https://github.com/KhronosGroup/glTF-Sample-Models to your local dir.
|
|||||||
|
|
||||||
After building `loader_example`, edit `test_runner.py`, then,
|
After building `loader_example`, edit `test_runner.py`, then,
|
||||||
|
|
||||||
$ python test_runner.py
|
```bash
|
||||||
|
$ python test_runner.py
|
||||||
|
```
|
||||||
|
|
||||||
### Unit tests
|
### Unit tests
|
||||||
|
|
||||||
```
|
```bash
|
||||||
$ cd tests
|
$ cd tests
|
||||||
$ make
|
$ make
|
||||||
$ ./tester
|
$ ./tester
|
||||||
|
Loading…
x
Reference in New Issue
Block a user