gKit2 light
Loading...
Searching...
No Matches
image_viewer.cpp File Reference

permet de visualiser les images aux formats reconnus par gKit2 light bmp, jpg, tga, png, hdr, etc. More...

#include <cfloat>
#include <algorithm>
#include "app.h"
#include "widgets.h"
#include "files.h"
#include "image.h"
#include "image_io.h"
#include "image_hdr.h"
#include "program.h"
#include "uniforms.h"
#include "texture.h"

Go to the source code of this file.

Classes

struct  ImageViewer

Functions

int main (int argc, char **argv)

Detailed Description

permet de visualiser les images aux formats reconnus par gKit2 light bmp, jpg, tga, png, hdr, etc.

Definition in file image_viewer.cpp.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 546 of file image_viewer.cpp.

547{
548 if(argc == 1)
549 {
550 printf("usage: %s image.[bmp|png|jpg|tga|hdr]\n", argv[0]);
551 return 0;
552 }
553
554 std::vector<const char *> options(argv +1, argv + argc);
555 ImageViewer app(options);
556 app.run();
557
558 return 0;
559}
void printf(Text &text, const int px, const int py, const char *format,...)
affiche un texte a la position x, y. meme utilisation que printf().
Definition text.cpp:140