Comments (3)
Part of this work is to ALSO move the holding of VisualFaces to each Visual instance.
from morphologica.
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.
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)
- Updating a visual model containing text can fail if GLFW context is not available HOT 1
- Make find_package for Qt optional not required HOT 1
- Does CartGridVisual needs its template arg T? HOT 1
- Fix GraphVisual to accept morph::vec and std::array containers of data for graphing HOT 2
- This project can run under Windows with msys2 and gcc HOT 7
- how to use this library under wxWidgets HOT 72
- Get rid of new and delete in Random.h
- wrong links in the homepage README.md file HOT 1
- How to draw 3D coordinates grid HOT 42
- key value issue in wx/keycodes.h HOT 1
- GridVisual should have axis labels, like GraphVisual
- Get rid of new and delete in morph/gl/shaders.h HOT 1
- Make a 3D graph class
- Remove new and delete from VisualResources HOT 1
- Remove new and delete from VisualModel/VisualTextModel HOT 2
- Remove new/delete from GraphVisual
- Remove new/delete from a batch of less significant files HOT 2
- Write opencv out of morph/Mnist.h
- Segmentation fault in morph::GridVisual::initializeVerticesRectsInterpolated when running grid_image example HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from morphologica.