Skip to content

Flame57U/picture-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

C stdin read photo

How to use this

cat mm.ppm | ./iv

What this is

Single-file C program (iv.c) using SDL2 to create a window which can draw a picture.

Build

Requires SDL2 development libraries. Compile with:

# Linux (SDL2-dev package installed)
gcc -Wall -Wextra -g -o iv iv.c `sdl2-config --cflags --libs

# Windows (MinGW with SDL2 in path)
gcc iv.c -o iv.exe -lmingw32 -lSDL2main -lSDL2

There is no Makefile or other build script -- compile manually.

About

picture view

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages