Skip to content

konsumer/sokol-canvas-example-1154

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an example that modifies sokol_app to allow non css-selector-based canvas config.

This allows things like shadow-dom (web-components, etc.)

# native
sokol-shdc --input triangle-sapp.glsl --output triangle-sapp.glsl.h --slang glsl430
cmake -B build
cmake --build build

# web
sokol-shdc --input triangle-sapp.glsl --output triangle-sapp.glsl.h --slang glsl300es
emcmake cmake -B wbuild
cmake --build wbuild

# run a webserver (1 of these)
emrun docs
python3 -m http.server --directory docs 8000
npx -y live-server docs

About

Resources

Rate limit · GitHub

Access has been restricted

You have triggered a rate limit.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

Stars

Watchers

Forks

Packages

No packages published

Languages