1 2 3 4 5 6 7 8 9 10 11 12 13
#include "entity.hpp" void Entity::Place() { if(type == 1) SDL_SetRenderDrawColor(renderer,255,0,255,255); else SDL_SetRenderDrawColor(renderer,0,255,0,255); SDL_RenderFillRect(renderer, &rect); SDL_SetRenderDrawColor(renderer,0,0,0,0); }