aneury1 / DOEngine

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).
0 stars 2 forks source link

Error Compiling GeometricRender.cpp #3

Closed aneury1 closed 4 years ago

aneury1 commented 4 years ago

the next portion of code is not compiling,

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);****

seem something related to the code base change.

victordmontero commented 4 years ago

Fixed on commit: dbd31d81a7bac0216215d1296dd10df820d8324d