Skip to content

zigimg/sdl-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sdl-example

Example usage of zigimg using SDL2. This library uses SDL.zig for SDL bindings. Be sure to check out the repository including the submodules.

Build

This example uses zig nominated 2024.3.0-mach. To install using zigup:

zigup 0.12.0-dev.3180+83e578a18

Then do

zig build

to generate the executable.

Usage

The executable takes one command line argument which is the relative path to an image file. This image is then displayed in a window on the screen if zigimg is able to read this image. For now only 24bit RGB and 32bit RGBA images are supported.

About

Example usage of zigimg using SDL2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages