Skip to content

use of libcurl and jansson to retrieve shadertoy shader JSON and filter informations.

Notifications You must be signed in to change notification settings

Acry/curl_jansson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C - use of libcurl

!!! ATTENTION SHADERTOY API CURRENTLY NOT WORKING
check this link to see if the API is working:
https://www.shadertoy.com/api/v1/shaders/MslGWN?key=fdrtwr

This code retrieves a JSON file from shadertoy.

1 - save shader to disk without using API
2 - save shader to disk with API and conf-file for API-Key

see: https://www.shadertoy.com/myapps
I provided a key you can use.
usage: $name shader-ID
example:
./2 XdjyRm
saves: XdjyRm.json

You can view shaders with https://github.com/Acry/SDL2-OpenGL
But it is work in progress, just implementing assets, that is why this repo exists.

3 - parse file with jansson and get some output
example:
./3 XdjyRm.json

4 - gets and save needed texture
example:
./4 Ms2SWW

8 - Latest working example

For a working Drag and Drop example see: https://github.com/Acry/SDL2-DnD

Useful links:
libcurl | jansson

More C Example Code

More SDL-C Example Code

About

use of libcurl and jansson to retrieve shadertoy shader JSON and filter informations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published