This commit is contained in:
2022-04-08 13:45:10 +02:00
parent ffb313971d
commit 855e312ad4
2 changed files with 10 additions and 0 deletions

View File

@ -652,6 +652,14 @@ bool RenderD7::touchTObj(touchPosition touch, RenderD7::TObject button)
else return false;
}
int RenderD7::GetRandomInt(int b, int e)
{
std::default_random_engine generator;
std::uniform_int_distribution<int> distribution(b, e);
int r = distribution(generator);
return r;
}
void RenderD7::DrawSTObject(std::vector<RenderD7::TObject> tobject, int tobjectindex, u32 color, u32 txtcolor)
{
RenderD7::DrawRect(tobject[tobjectindex].x, tobject[tobjectindex].y, tobject[tobjectindex].w, tobject[tobjectindex].h, color);