Replies: 1 comment
-
|
This isn't a question about EnTT, am I wrong? It looks like a general question about C++, and |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm experimenting a little bit for integrating entt into a simple OpenGL app I'm working on.
The MeshRender Component I implemented, maintains two lists (in the form of std::vector<>): one that stores models and the other with their shaders.
In the Renderer class, I have a Submit() method, which picks entity with MeshRender component from the registry. For each one, I'd like to retrieve from the two lists, single model and its own shader.
Finally, the Draw() method of the Model class is called to render objects to the screen.
This is the code I used for (but an exeption is fired up concerning a violation about the std::vector<> class):
What's wrong, could you please point me in the right direction to solve the issue?
Thanks in advance, kind regards.
Beta Was this translation helpful? Give feedback.
All reactions