You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the tutorial it says to import opengl_graphics::glyph_cache::GlyphCache. This doesn't seem to exist anymore. What exists instead is opengl_graphics::GlyphCache.
Also the constructor of GlyphCache takes three arguments instead of two. There is a factory needed.
How can I compile the code? I cannot find anything about the factory. Also I followed the tutorial step by step.
Maybe problems like these can be solved in the future with adding versions to the dependencies. As piston seems to change very fast, specific library versions can make sure that the tutorial still works, even when newer versions of piston or any dependency came out. :-)
PS: I found opengl_graphics::graphics::glyph_cache::rusttype::GlyphCache, but it seems to be the same struct as opengl_graphics::GlyphCache.
The text was updated successfully, but these errors were encountered:
Okay, piston2d-opengl_graphics 0.46.0 seems to be the last version that still had opengl_graphics::glyph_cache::GlyphCache. There is no combination of dependencies that could run the last Sudoku chapter, where the font is being added. Going through the versions it looked like every week new breaking changes occur.
In the tutorial it says to import
opengl_graphics::glyph_cache::GlyphCache
. This doesn't seem to exist anymore. What exists instead isopengl_graphics::GlyphCache
.Also the constructor of GlyphCache takes three arguments instead of two. There is a factory needed.
How can I compile the code? I cannot find anything about the factory. Also I followed the tutorial step by step.
Maybe problems like these can be solved in the future with adding versions to the dependencies. As piston seems to change very fast, specific library versions can make sure that the tutorial still works, even when newer versions of piston or any dependency came out. :-)
PS: I found
opengl_graphics::graphics::glyph_cache::rusttype::GlyphCache
, but it seems to be the same struct asopengl_graphics::GlyphCache
.The text was updated successfully, but these errors were encountered: