Read paths from cli + upload bad apple video
This commit is contained in:
parent
4b56e3fa71
commit
3f91ad256a
2 changed files with 2 additions and 3 deletions
BIN
bad_apple.mp4
Normal file
BIN
bad_apple.mp4
Normal file
Binary file not shown.
|
@ -3,7 +3,6 @@
|
||||||
#include <glm/ext/vector_uint2.hpp>
|
#include <glm/ext/vector_uint2.hpp>
|
||||||
#include <glm/ext/vector_uint3.hpp>
|
#include <glm/ext/vector_uint3.hpp>
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
#include <iostream>
|
|
||||||
#include <raylib.h>
|
#include <raylib.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -68,7 +67,7 @@ struct kdtree
|
||||||
|
|
||||||
int main (int argc, char *argv[])
|
int main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
auto img = LoadImage("data/img.jpg");
|
auto img = LoadImage(argv[1]);
|
||||||
|
|
||||||
InitWindow(img.width, img.height, "");
|
InitWindow(img.width, img.height, "");
|
||||||
SetTargetFPS(60);
|
SetTargetFPS(60);
|
||||||
|
@ -125,7 +124,7 @@ int main (int argc, char *argv[])
|
||||||
|
|
||||||
auto t = LoadImageFromTexture(target.texture);
|
auto t = LoadImageFromTexture(target.texture);
|
||||||
ImageFlipVertical(&t);
|
ImageFlipVertical(&t);
|
||||||
ExportImage(t, "test.jpg");
|
ExportImage(t, argv[2]);
|
||||||
|
|
||||||
CloseWindow();
|
CloseWindow();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue