I\'m trying to build a gameengine in SDL2 with cpp. I have a class called \'entity\' which has some data for movement and also some pointers to a surface and a texture. A functi