Cleanup Includes/Add PushMessage(string, string)

This commit is contained in:
2024-05-17 11:33:09 +02:00
parent e0c03f2ec5
commit f3291963d4
23 changed files with 35 additions and 66 deletions

View File

@@ -1,15 +1,13 @@
#include <filesystem>
#include <fstream>
#include <map>
#include <iostream>
#include <renderd7/nimg.hpp>
#include <sstream>
// Use an Npi simplifier cause I am lazy
#define reca_cc(x) reinterpret_cast<const char*>(x)
#define reca_c(x) reinterpret_cast<char*>(x)
#define pak32(q, w, e, r) \
((((q)&0xff) << 0) | (((w)&0xff) << 8) | (((e)&0xff) << 16) | \
(((r)&0xff) << 24))
#define pak32(q, w, e, r) \
((((q) & 0xff) << 0) | (((w) & 0xff) << 8) | (((e) & 0xff) << 16) | \
(((r) & 0xff) << 24))
// Stupid RLE Algorithm
void npi_compress(std::vector<unsigned char>& ret,
@@ -116,4 +114,4 @@ void NIMG_Save(nimg image, std::string path) {
// Close stream
fout.close();
}
} // namespace RenderD7
} // namespace RenderD7