{"id":15069157,"url":"https://github.com/silenium-dev/compose-gl","last_synced_at":"2026-03-09T01:02:17.900Z","repository":{"id":247362949,"uuid":"825630644","full_name":"silenium-dev/compose-gl","owner":"silenium-dev","description":"Render OpenGL content into a Compose Canvas","archived":false,"fork":false,"pushed_at":"2026-03-03T21:38:16.000Z","size":11088,"stargazers_count":8,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-04T01:36:46.138Z","etag":null,"topics":["compose","compose-desktop","direct3d12","egl","jvm","kotlin","opengl","rendering","skia","ui"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/silenium-dev.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,"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":"2024-07-08T07:59:31.000Z","updated_at":"2026-03-03T21:38:21.000Z","dependencies_parsed_at":"2024-08-09T22:22:12.390Z","dependency_job_id":"326c0e41-a4de-4e1b-bdad-bb3a37b52c5a","html_url":"https://github.com/silenium-dev/compose-gl","commit_stats":null,"previous_names":["silenium-dev/compose-gl"],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/silenium-dev/compose-gl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silenium-dev%2Fcompose-gl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silenium-dev%2Fcompose-gl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silenium-dev%2Fcompose-gl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silenium-dev%2Fcompose-gl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silenium-dev","download_url":"https://codeload.github.com/silenium-dev/compose-gl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silenium-dev%2Fcompose-gl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30279765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["compose","compose-desktop","direct3d12","egl","jvm","kotlin","opengl","rendering","skia","ui"],"created_at":"2024-09-25T01:40:46.561Z","updated_at":"2026-03-09T01:02:17.845Z","avatar_url":"https://github.com/silenium-dev.png","language":"Kotlin","readme":"# compose-gl\n\nRender OpenGL content onto a Compose Canvas.\n\n## Supported platforms\n\n- JVM + Linux\n- JVM + Windows\n\n## Usage\n\nYou can add the dependency to your project as follows:\n\n```kotlin\nrepositories {\n    maven(\"https://repo.silenium.dev/releases\") {\n        name = \"silenium-dev-releases\"\n    }\n}\ndependencies {\n    implementation(\"dev.silenium.compose.gl:compose-gl:0.7.4\")\n}\n```\n\n### Development Snapshots\n\nSnapshots are available from [silenium-dev-snapshots](https://repo.silenium.dev/snapshots).\nVersions don't follow semantic versioning, but are based on the commit hash: `\u003cshort-sha\u003e-dev` (e.g. `c6d653e-dev`)\n\n### Example\n\nThis is a simple example of how to use the library.\nFor a more complex example, see [src/test/kotlin/direct/Main.kt](src/test/kotlin/direct/Main.kt).\n\n```kotlin\n@Composable\nfun App() {\n    Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.TopStart) {\n        // Button behind the GLCanvas -\u003e Alpha works. Clicks will be passed through, as long as the GLCanvas is not clickable\n        Button(onClick = {}) {\n            Text(\"Click me!\")\n        }\n        // Size needs to be specified, as the default size of a Compose Canvas is 0x0\n        // Internally uses a Compose Canvas, so it can be used like any other Composable\n        GLCanvas(modifier = Modifier.size(100.dp)) {\n            // Translucent blue\n            // Use LWJGL GL, other GL libraries may work but are not tested\n            GL30.glClearColor(0f, 0f, 0.5f, 0.5f)\n            GL30.glClear(GL30.GL_COLOR_BUFFER_BIT)\n        }\n    }\n}\n\nfun main() = application {\n    Window(onCloseRequest = ::exitApplication) {\n        App()\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilenium-dev%2Fcompose-gl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilenium-dev%2Fcompose-gl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilenium-dev%2Fcompose-gl/lists"}