JoeyDeVries / LearnOpenGL

Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com
https://learnopengl.com
Other
11.06k stars 2.8k forks source link

text_rendering.cpp is 0 bytes in size; missing FreeType library files #33

Open Heiland opened 8 years ago

Heiland commented 8 years ago

The file text_rendering.cpp doesn't have any content. Also the FreeType library files which is referenced in the respective chapter "Text Rendering" on www.learnopengl.com isn't added to the respository.

JoeyDeVries commented 8 years ago

Oops, I found the file on my folder and assumed I simply forgot to push it to the repository, but it seems I actually never implemented it in the repository (probably due to the FreeType dependancy). I'm sorry I should have checked. I'm removing it for now (and also from the CMakeLists.txt so it won't fail), thank you.

Ray1024 commented 7 years ago

@JoeyDeVries Have you finished the file text_rendering.cpp? I'm learning opengl from your examples. But i find out that the link of file text_rendering.cpp was disabled.

JoeyDeVries commented 7 years ago

I haven't gotten around to adding it to the repository due to the FreeType dependency, but you can still see the full source code (using the older code viewer) in the tutorial: https://learnopengl.com/code_viewer.php?code=in-practice/text_rendering

Ray1024 commented 7 years ago

@JoeyDeVries Oh, I just remembered that I can't visit this website without vpn in China. Would you please do me a favor that send me the file text_rendering to my e-mail (guojianlei010@163.com) ? Thank you so much!!!

JoeyDeVries commented 7 years ago

Will do! And interesting, I didn't know China couldn't reach the website without VPN. I always thought larger websites from companies like Google were disallowed, not smaller random websites. Do they use a white-list instead of a black-list?

Ray1024 commented 7 years ago

HaHa! Well, that was i found out just a short while ago. At first I thought that is a problem of browser. I don't know why your websites was disallowed.

JoeyDeVries commented 7 years ago

Hehe ah well, good to know at least :) good luck!

Ray1024 commented 7 years ago

Yeah, thank you. I suggest you upload all the files of tutorial to github, and I will get it easier.

JoeyDeVries commented 7 years ago

I understand, the text_rendering one is a bit of an exception as it requires a unique dependency (FreeType) which is annoying to set up in the CMakeLists setup, I'll have to find some time to try and come up with a system that works.

Ray1024 commented 7 years ago

Thank you so much! I will appreciate that.