Another Game Engine, by now only use SDL2 and its dependent family library but we planning to use other librarys like SFML or allegro5 to create Drawing Context (opengl ,Vulkan or metal).
eometricRender.cpp:49:61: error: request for member ‘r’ in ‘((Spline*)this)->Spline::color’, which is of pointer type ‘Color*’ (maybe you meant to use ‘->’ ?)
SDL_SetRenderDrawColor(window->getRender(), this->color.r, color->g. color->b, 255);
^
GeometricRender.cpp:49:74: error: request for member ‘color’ in ‘((Spline*)this)->Spline::color->Color::g’, which is of non-class type ‘short int’
SDL_SetRenderDrawColor(window->getRender(), this->color.r, color->g. color->b, 255);****
the next portion of code is not compiling,
seem something related to the code base change.