blob: 6ad0e3f9f3da9b405436d8f399a01159e14d885c (
plain)
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);
}
|