mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-09 07:11:49 +08:00
Convert UTF16 file to UTF8.
Add premake project to build on Linux.
This commit is contained in:
parent
af3ebb2e76
commit
d6b0b0b990
19
examples/basic/README.md
Normal file
19
examples/basic/README.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Basic glTF viewer
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
* glfw3
|
||||||
|
* premake5(linux)
|
||||||
|
|
||||||
|
## Build on Linux
|
||||||
|
|
||||||
|
```
|
||||||
|
$ premake5 gmake
|
||||||
|
$ make
|
||||||
|
```
|
||||||
|
|
||||||
|
## Build on Visual Studio
|
||||||
|
|
||||||
|
Plese use solution file located at `basic` folder.
|
||||||
|
|
||||||
|
|
Binary file not shown.
44
examples/basic/premake5.lua
Normal file
44
examples/basic/premake5.lua
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
solution "basic_viewer"
|
||||||
|
-- location ( "build" )
|
||||||
|
configurations { "Debug", "Release" }
|
||||||
|
platforms {"native", "x64", "x32"}
|
||||||
|
|
||||||
|
project "basic_viewer"
|
||||||
|
|
||||||
|
kind "ConsoleApp"
|
||||||
|
language "C++"
|
||||||
|
cppdialect "C++11"
|
||||||
|
files { "main.cpp", "shaders.cpp", "window.cpp" }
|
||||||
|
includedirs { "./" }
|
||||||
|
includedirs { "../../" }
|
||||||
|
includedirs { "../common/glm" }
|
||||||
|
|
||||||
|
configuration { "linux" }
|
||||||
|
linkoptions { "`pkg-config --libs glfw3`" }
|
||||||
|
links { "GL", "GLU", "m", "GLEW", "X11", "Xrandr", "Xinerama", "Xi", "Xxf86vm", "Xcursor", "dl" }
|
||||||
|
|
||||||
|
configuration { "windows" }
|
||||||
|
-- Edit path to glew and GLFW3 fit to your environment.
|
||||||
|
includedirs { "../../../../local/glew-1.13.0/include/" }
|
||||||
|
includedirs { "../../../../local/glfw-3.2.bin.WIN32/include/" }
|
||||||
|
libdirs { "../../../../local/glew-1.13.0/lib/Release/Win32/" }
|
||||||
|
libdirs { "../../../../local/glfw-3.2.bin.WIN32/lib-vc2013/" }
|
||||||
|
links { "glfw3", "gdi32", "winmm", "user32", "glew32", "glu32","opengl32", "kernel32" }
|
||||||
|
defines { "_CRT_SECURE_NO_WARNINGS" }
|
||||||
|
|
||||||
|
configuration { "macosx" }
|
||||||
|
includedirs { "/usr/local/include" }
|
||||||
|
buildoptions { "-Wno-deprecated-declarations" }
|
||||||
|
libdirs { "/usr/local/lib" }
|
||||||
|
links { "glfw3", "GLEW" }
|
||||||
|
linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
|
||||||
|
|
||||||
|
configuration "Debug"
|
||||||
|
defines { "DEBUG" }
|
||||||
|
symbols "On"
|
||||||
|
warnings "Extra"
|
||||||
|
|
||||||
|
configuration "Release"
|
||||||
|
defines { "NDEBUG" }
|
||||||
|
optimize "On"
|
||||||
|
warnings "Extra"
|
Loading…
x
Reference in New Issue
Block a user