move .h to .hpp

This commit is contained in:
shinya 2026-05-20 11:09:54 +02:00
parent acf416f4b6
commit 85a1e21307
4 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@
shellHook = '' shellHook = ''
echo "Run:" echo "Run:"
echo 'g++ shader.cpp -o test -lglfw -lGLEW -lGL && ./test' echo 'g++ shader.cpp -o shader -lglfw -lGLEW -lGL && ./shader'
''; '';
}; };

View File

@ -2,10 +2,10 @@
#include <GLFW/glfw3.h> #include <GLFW/glfw3.h>
#define STB_IMAGE_IMPLEMENTATION #define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h" #include "stb_image.hpp"
#define STB_IMAGE_WRITE_IMPLEMENTATION #define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h" #include "stb_image_write.hpp"
#include <fstream> #include <fstream>
#include <vector> #include <vector>
@ -144,4 +144,4 @@ int main()
stbi_write_jpg("frameO.jpg",w,h,4,out.data(),90); stbi_write_jpg("frameO.jpg",w,h,4,out.data(),90);
std::cout << "done\n"; std::cout << "done\n";
} }