Skip to content
cpd67 edited this page Aug 16, 2015 · 50 revisions

Welcome to the FAQ page! In here, you can ask whatever burning question you have in regards to the library.

Q: A test keeps crashing with the error "the font file could not be opened and read "! What do I do?

A: Are you in the bin folder of the tsgl folder? Some tests won't work unless you are in the bin folder. Specifically:

  • testBlurImage
  • testCalcPi
  • testCosineIntegral
  • testGetPixels
  • testGreyscale
  • testImage
  • testImageCart
  • testInverter
  • testMandelbrot
  • testPhilosophers
  • testProgressBar
  • testSpectrogram
  • testText
  • testTextCart
  • testTextTwo
  • testUnits

If the test that keeps crashing is in the list above, go into the bin folder and execute it from there.

Q: What is the maximum number of threads I can use in Windows?

A: You can only have up to 64 threads at a time in Windows.

Q: Why won't my tsgl Solution build in Windows?

A: Have you built the tsgl project first? You must build that first in order to create the lib file for TSGL. Then, you can build the entire Solution.

Q: Does TSGL have Debug messages in case things break?

A: In fact it does. Check out the Error.h file and you will see a commented out line, //#define TSGL_DEBUG . Uncommenting out this line will turn on Debug messages for the TSGL library in case things break (font not loading, image not found, etc...).

Clone this wiki locally