Hello! I have a problem with the function to output an object in SDL.
Here in this code it issues SIGSEGV:
void Window::draw(Object *toDraw) { SDL_RenderCopy(coreRenderer, SDL_CreateTextureFromSurface(getRenderer(), toDraw->getSurface()), NULL, NULL); } I think by the names of functions / variables everything is clear, if not, then the whole code HERE
I really hope for you and your help.