All Questions
Tagged with entity-component-system pointers
4 questions
0
votes
0
answers
61
views
Array element reference being set to partially incorrect memory address and data
I am at the point in the custom ECS I'm making where I am trying to retrieve components I've stored. The issue is when I try to access the array element as a reference it ends up having a memory ...
0
votes
2
answers
111
views
Pointer to Struct Value Memory Leak
I am designing an ECS and I have a struct that holds two values: an array of integers and a double pointer. I also have another structure that holds a pointer to the previous struct.
I'm able to ...
0
votes
0
answers
248
views
C++ make_unique() changing member attributes' values
I am developing a small game in SDL2 and am in the process of implementing a Quadtree for collision detection in the ECS I have written. The structure of my Quadtree class is similar to this one and ...
0
votes
1
answer
2k
views
Separating Systems from the ECS (Entity Component System) Manager in C++
I am currently making an Entity-Component-System program as a way to learn C++ (I know that's probably not the recommended way but I'm having fun). It's going well so far but I am hoping to make some ...