lighttransport / nanort

NanoRT, single header only modern ray tracing kernel.
MIT License
1.08k stars 91 forks source link

cmake file for gui example #7

Closed szellmann closed 8 years ago

szellmann commented 8 years ago

Would you accept a simple cmake file for the GUI example? Wanted to try this but had no premake4 under Ubuntu 14.04 right away.

Btw. I can't use it in debug mode because ImGUI asserts that a true type file exists:

gui: /home/zellmans/nanort/examples/common/imgui/imgui_draw.cpp:1196: ImFont* ImFontAtlas::AddFontFromFileTTF(const char*, float, const ImFontConfig*, const ImWchar*): Assertion `0' failed.
Aborted (core dumped)

Simply deleting the assert() would do. This is however an issue in a 3rdparty lib and not directly in nanort..

szellmann commented 8 years ago

Ah, hadn't thought of appveyor and MS windows builds. Have fixed this so far that it works with glew from nuget, but now it won't find glx.h (for obvious reasons). Will have to look into this later..

szellmann commented 8 years ago

Fixed this so that it passes the CI tests..

syoyo commented 8 years ago

Super cool! Thanks!

Btw. I can't use it in debug mode because ImGUI asserts that a true type file exists:

This is simply I forget to add TTF file to the repo. Using TTF font is not a serious item so I changed to use default font in the recent commit: https://github.com/lighttransport/nanort/commit/8522aa07a75100f95d70606987dfa1ba8728a801