[New] Add drawPoint to Renderer

This commit is contained in:
Kirigaya Kazuto 2017-03-14 17:29:22 +08:00
parent e0747bb37e
commit ea9e6e8ac4
2 changed files with 6 additions and 0 deletions

View File

@ -262,6 +262,11 @@ namespace MiniEngine
return SDL_RenderDrawRect(rnd.get(), &inr);
}
int Renderer::drawPoint(Point p)
{
return SDL_RenderDrawPoint(rnd.get(),p.x,p.y);
}
int Renderer::clear()
{
return SDL_RenderClear(rnd.get());

View File

@ -142,6 +142,7 @@ namespace MiniEngine
int fillRect(Rect rect);
int drawRect(Rect rect);
int drawPoint(Point p);
int clear();
void update();
int copy(Texture t, Rect src, Rect dst);