skybox: added moon and stars

This commit is contained in:
MihailRis
2024-01-26 02:49:42 +03:00
parent b42a517cc6
commit a4a5aef422
22 changed files with 258 additions and 52 deletions
+8
View File
@@ -6,7 +6,15 @@
namespace gzip {
const unsigned char MAGIC[] = "\x1F\x8B";
/* Compress bytes array to GZIP format
@param src source bytes array
@param size length of source bytes array */
std::vector<ubyte> compress(const ubyte* src, size_t size);
/* Decompress bytes array from GZIP
@param src GZIP data
@param size length of GZIP data */
std::vector<ubyte> decompress(const ubyte* src, size_t size);
}
+3 -1
View File
@@ -355,7 +355,9 @@ Texture* png::load_texture(std::string filename) {
std::cerr << "Could not load texture " << filename << std::endl;
return nullptr;
}
return Texture::from(image.get());
auto texture = Texture::from(image.get());
texture->setNearestFilter();
return texture;
}
void png::write_image(std::string filename, const ImageData* image) {