Wrapping up

This commit is contained in:
Martin committed 2025-01-15 21:25:52 +01:00
1 parent d5df4ea188
commit a3b6aab0c7
5 files changed
+18 -9

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
#include <fstream>
void saveImage(const char* filename, unsigned char* framebuffer, int width, int height) { // TODO: Figure out a better way to do this
void saveImage(const char* filename, unsigned char* framebuffer, int width, int height) {
std::ofstream imageFile(filename, std::ios::out | std::ios::binary);
imageFile << "P6\n" << width << " " << height << "\n255\n";
for (int i = 0; i < width * height * 3; i++) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.