Code Monkey home page Code Monkey logo

Comments (3)

sebjameswml avatar sebjameswml commented on June 10, 2024

Part of this work is to ALSO move the holding of VisualFaces to each Visual instance.

from morphologica.

sebjameswml avatar sebjameswml commented on June 10, 2024

Tried: commit 9962ff2
Ran into:

[ 14%] Building CXX object tests/CMakeFiles/testhexgrid3.dir/testhexgrid3.cpp.o
In file included from /home/seb/models/morphologica/morph/VisualModel.h:27,
                 from /home/seb/models/morphologica/morph/Visual.h:44,
                 from /home/seb/models/morphologica/tests/testhexgrid3.cpp:8:
/home/seb/models/morphologica/morph/VisualTextModel.h: In constructor ‘morph::VisualTextModel::VisualTextModel(morph::Visual*, GLuint, morph::VisualFont, float, int, morph::vec<float, 3>, const string&, std::array<float, 3>)’:
/home/seb/models/morphologica/morph/VisualTextModel.h:141:41: error: invalid use of incomplete type ‘class morph::Visual’
  141 |             this->face = this->parentVis->getVisualFace (visualfont, this->fontpixels);
      |                                         ^~
compilation terminated due to -Wfatal-errors.
make[2]: *** [tests/CMakeFiles/testhexgrid3.dir/build.make:76: tests/CMakeFiles/testhexgrid3.dir/testhexgrid3.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1296: tests/CMakeFiles/testhexgrid3.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

To fix, I think I'd need to do the bindmodel thing with VisualTextModels. Might make this a 'won't fix' as it works fine as is.

from morphologica.

sebjameswml avatar sebjameswml commented on June 10, 2024

Won't fix - not worth the effort, turns out that holding freetype and fonts in a VisualResources singleton is fine.

from morphologica.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.