Read paths from cli + upload bad apple video

This commit is contained in:
NukeBird 2025-02-12 17:46:27 +03:00
parent 4b56e3fa71
commit 3f91ad256a
2 changed files with 2 additions and 3 deletions

BIN
bad_apple.mp4 Normal file

Binary file not shown.

View file

@ -3,7 +3,6 @@
#include <glm/ext/vector_uint2.hpp>
#include <glm/ext/vector_uint3.hpp>
#include <glm/glm.hpp>
#include <iostream>
#include <raylib.h>
#include <vector>
@ -68,7 +67,7 @@ struct kdtree
int main (int argc, char *argv[])
{
auto img = LoadImage("data/img.jpg");
auto img = LoadImage(argv[1]);
InitWindow(img.width, img.height, "");
SetTargetFPS(60);
@ -125,7 +124,7 @@ int main (int argc, char *argv[])
auto t = LoadImageFromTexture(target.texture);
ImageFlipVertical(&t);
ExportImage(t, "test.jpg");
ExportImage(t, argv[2]);
CloseWindow();