{"id":44005439,"url":"https://github.com/causerp/cjsfml","last_synced_at":"2026-05-27T12:01:18.679Z","repository":{"id":275479891,"uuid":"925359034","full_name":"causerp/cjsfml","owner":"causerp","description":"SFML library bindings for cangjie","archived":false,"fork":false,"pushed_at":"2026-04-05T17:18:28.000Z","size":2270,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-05T17:29:04.384Z","etag":null,"topics":["cangjie","cangjie-lang","cangjie-library"],"latest_commit_sha":null,"homepage":"","language":"Cangjie","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/causerp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-31T18:18:23.000Z","updated_at":"2026-04-05T17:18:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"56ec49cc-9585-430a-a0e3-5cc729e8d31e","html_url":"https://github.com/causerp/cjsfml","commit_stats":null,"previous_names":["causerp/cjsfml"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/causerp/cjsfml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/causerp%2Fcjsfml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/causerp%2Fcjsfml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/causerp%2Fcjsfml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/causerp%2Fcjsfml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/causerp","download_url":"https://codeload.github.com/causerp/cjsfml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/causerp%2Fcjsfml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33564850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cangjie","cangjie-lang","cangjie-library"],"created_at":"2026-02-07T13:12:02.318Z","updated_at":"2026-05-27T12:01:18.639Z","avatar_url":"https://github.com/causerp.png","language":"Cangjie","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cjsfml\n\ncjsfml - SFML 3 library bindings for cangjie.\n\nhttps://www.sfml-dev.org/\n\nSFML is a simple, fast, cross-platform and object-oriented multimedia API.\nIt provides access to windowing, graphics, audio and network.\nIt is written in C++, and has bindings for various languages.\n\n## Resource Management\n\nSFML managed classes implement the `ResourceHandle` interface which extends\ncangjie's `Resource` interface with the `handle` property.\n\n```\n// ResourceHandle\n\npublic func isClosed(): Bool\n\npublic func close(): Unit\n\npublic prop handle: CPointer\u003cUnit\u003e\n```\n\nClasses also implement destructors to free resources. Destructors are invoked by\ncangjie's garbage collector or by calling `gc()` directly. Programs don't have to\ndo resource management and can free unused resources by simply calling `gc()`.  \n\nIt is important to free `Texture` resources when not in use as they take up GPU memory.\n\n### Non-owning resources\n\nSome classes, like `Texture`, can be constructed as owning or non owning. SFML\nreturns textures that are not supposed to be freed (`RenderTexture`) and as such `cjsfml`\nreturns non owning `Texture`s for SFML internal resources. It's safe to call `close()`\non these objects. These objects shouldn't be used after the owning object has been freed.\n\n## Building\n\nTo use `cjsfml` in your project, download the latest release and extract the `cjsfml` folder\ninto your project directory. Then, configure your `cjpm.toml` to use it as a binary dependency.\n\n### Static Linking\n\nWhen linking statically, you must explicitly provide the CSFML link options in your `cjpm.toml`.\n\n```toml\n[package]\n  cjc-version = \"1.0.5\"\n  name = \"test\"\n  description = \"nothing here\"\n  version = \"1.0.0\"\n  target-dir = \"\"\n  output-type = \"executable\"\n  compile-option = \"\"\n  override-compile-option = \"\"\n  link-option = \"-lcsfml-audio -lcsfml-graphics -lcsfml-system -lcsfml-window\"\n  package-configuration = {}\n\n[target.x86_64-unknown-linux-gnu.bin-dependencies]\n  path-option = [\"cjsfml/linux_x86_64_cjnative/static/cjsfml\"]\n\n[target.x86_64-w64-mingw32.bin-dependencies]\n  path-option = [\"cjsfml/windows_x86_64_cjnative/static/cjsfml\"]\n```\n\n### Dynamic Linking\n\nWhen linking dynamically, you do not need to specify `link-option`. However, you must ensure\nthat the SFML and CSFML shared libraries (`.so` or `.dll` files) included in the release's\n`sfml` folder are placed in the same directory as your compiled executable at runtime.\n\n```toml\n[package]\n  cjc-version = \"1.0.5\"\n  name = \"test\"\n  description = \"nothing here\"\n  version = \"1.0.0\"\n  target-dir = \"\"\n  output-type = \"executable\"\n  compile-option = \"\"\n  override-compile-option = \"\"\n  link-option = \"\"\n  package-configuration = {}\n\n[target.x86_64-unknown-linux-gnu.bin-dependencies]\n  path-option = [\"cjsfml/linux_x86_64_cjnative/dynamic/cjsfml\"]\n\n[target.x86_64-w64-mingw32.bin-dependencies]\n  path-option = [\"cjsfml/windows_x86_64_cjnative/dynamic/cjsfml\"]\n```\n\n## License\n\nzlib\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcauserp%2Fcjsfml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcauserp%2Fcjsfml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcauserp%2Fcjsfml/lists"}