Update renderd7.hpp

This commit is contained in:
tobid7 2021-09-21 16:31:45 +02:00 committed by GitHub
parent d98707aa8f
commit 9c66052878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,6 +252,23 @@ namespace RenderD7
std::string path;
bool isDir;
};
struct rgba
{
int r, g, b, a
};
class Console
{
public:
Console(int x, int y, int w, int h, int a = 255);
Console(int x, int y, int w, int h, rgba col);
Console(int x, int y, int w, int h, std::string name, rgba col = {255, 255, 255, 255};, rgba barcol = {0, 0, 0, 255};, rgba outline = {222, 222, 222, 255};);
~Console();
private:
int x, y, w, h, a;
rgba color = {255, 255, 255, 255};
rgba outline = {222, 222, 222, 255};
rgba barcolor = {0, 0, 0, 255};
}!
bool NameIsEndingWith(const std::string &name, const std::vector<std::string> &extensions);
void GetDirContentsExt(std::vector<RenderD7::DirContent> &dircontent, const std::vector<std::string> &extensions);