platform-test/block.cpp

16 lines
305 B
C++

#include"block.h"
void Block::print(int x, int y, int w, int h,SDL_Renderer* renderer){
posX = x;
posY = y;
szW = w;
szH = h;
//std::cout<<x<<" "<<y<<" "<<w<<" "<<h<<" / ";
rect = {posX, posY, szW, szH};
SDL_SetRenderDrawColor(renderer,0,0xFF,0,0xFF);
SDL_RenderFillRect(renderer,&rect);
}