MAIN
This commit is contained in:
parent
ffb313971d
commit
855e312ad4
@ -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);
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <cstring>
|
||||
#include <random>
|
||||
#include <sys/stat.h>
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
@ -147,6 +148,7 @@ namespace RenderD7
|
||||
};
|
||||
u32 Hex(const std::string color, u8 a = 255);
|
||||
}
|
||||
int GetRandomInt(int b, int e);
|
||||
void DrawMetrikOvl();
|
||||
bool DrawImageFromSheet(RenderD7::Sheet* sheet, size_t index, float x, float y, float scaleX = 1.0, float scaleY = 1.0);
|
||||
namespace Error
|
||||
|
Loading…
Reference in New Issue
Block a user