{"id":19110859,"url":"https://github.com/h2co3/sdl2-sparkling","last_synced_at":"2026-06-17T18:02:54.730Z","repository":{"id":29600379,"uuid":"33140472","full_name":"H2CO3/sdl2-sparkling","owner":"H2CO3","description":"SDL2 bindings for Sparkling","archived":false,"fork":false,"pushed_at":"2016-05-05T05:49:39.000Z","size":2580,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-17T18:53:02.110Z","etag":null,"topics":["c","draw","ffi","ffi-bindings","ffi-wrapper","graphics","graphics-library","sdl","sdl2","sdl2-bindings","sparkling"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/H2CO3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-30T18:30:05.000Z","updated_at":"2020-10-17T18:56:53.000Z","dependencies_parsed_at":"2022-08-24T08:01:30.931Z","dependency_job_id":null,"html_url":"https://github.com/H2CO3/sdl2-sparkling","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/H2CO3%2Fsdl2-sparkling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/H2CO3%2Fsdl2-sparkling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/H2CO3%2Fsdl2-sparkling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/H2CO3%2Fsdl2-sparkling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/H2CO3","download_url":"https://codeload.github.com/H2CO3/sdl2-sparkling/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240164925,"owners_count":19758273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","draw","ffi","ffi-bindings","ffi-wrapper","graphics","graphics-library","sdl","sdl2","sdl2-bindings","sparkling"],"created_at":"2024-11-09T04:26:18.935Z","updated_at":"2026-05-31T17:30:17.887Z","avatar_url":"https://github.com/H2CO3.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SDL2 bindings for Sparkling\n\n## Basic usage\n\n1. Import SDL\n2. Open window(s) to draw on\n3. Draw window; render\n4. Handle events\n5. goto 3\n\n\u003c!-- commity-comment --\u003e\n\n    // 1.\n    let SDL = dynld(\"sdl2\");\n\n    // 2.\n    let window = SDL::OpenWindow(\"Title\", optionalWidth, optionalHeight);\n\n    while true {\n        // 3.\n        window.fillRect(0, 0, window.width, window.height);\n        window.refresh();\n\n        // 4.\n        let event;\n        while (event = SDL::PollEvent()) != nil {\n            // do something with 'event' here...\n        }\n\n        // 5.\n    }\n\nCheck out the Documentation, starting with [SDL.md](doc/SDL.md),\non how to get started and for further reference.\n\n## Installing\n\nFirst things first, make sure that [Sparkling](https://github.com/H2CO3/Sparkling)\nis installed.\nThen, compile this with `make` (no extra flags are necessary).  \nFinally, you must place the resulting library file in the same directory as\n`libspn`, which should be `/usr/local/lib` (unless you specified another\ninstallation directory).\n\n## Examples\n\nFor example code, see the Sparkling files:\n\n- [`example_docsig.spn`](examples/example_docsig.spn)\n- [`example_graph.spn`](examples/example_graph.spn)\n- [`demo_linear_gradient.spn`](examples/demo_linear_gradient.spn)\n- [`demo_radial_gradient.spn`](examples/demo_radial_gradient.spn)\n- [`demo_conical_gradient.spn`](examples/demo_conical_gradient.spn)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh2co3%2Fsdl2-sparkling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh2co3%2Fsdl2-sparkling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh2co3%2Fsdl2-sparkling/lists"}