{"id":18465141,"url":"https://github.com/natario1/egloo","last_synced_at":"2025-04-06T10:14:08.923Z","repository":{"id":37689435,"uuid":"175463832","full_name":"natario1/Egloo","owner":"natario1","description":"A lightweight Kotlin multiplatform framework for OpenGL ES and EGL management based on object-oriented components, inspired by Google's Grafika.","archived":false,"fork":false,"pushed_at":"2021-09-23T19:03:51.000Z","size":5187,"stargazers_count":149,"open_issues_count":7,"forks_count":21,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-30T09:08:16.032Z","etag":null,"topics":["android","android-library","android-sdk","egl","egl-wrapper","gles","gles2","gles3","google-grafika","kotlin","kotlin-multiplatform","multiplatform","native","opengl-drawing","opengl-es","opengl-framework","opengles"],"latest_commit_sha":null,"homepage":"https://natario1.github.io/Egloo","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/natario1.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["natario1"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-03-13T16:59:21.000Z","updated_at":"2025-02-24T10:06:09.000Z","dependencies_parsed_at":"2022-09-11T17:13:12.808Z","dependency_job_id":null,"html_url":"https://github.com/natario1/Egloo","commit_stats":null,"previous_names":["natario1/eglcore"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natario1%2FEgloo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natario1%2FEgloo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natario1%2FEgloo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natario1%2FEgloo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natario1","download_url":"https://codeload.github.com/natario1/Egloo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247464225,"owners_count":20942970,"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":["android","android-library","android-sdk","egl","egl-wrapper","gles","gles2","gles3","google-grafika","kotlin","kotlin-multiplatform","multiplatform","native","opengl-drawing","opengl-es","opengl-framework","opengles"],"created_at":"2024-11-06T09:12:05.914Z","updated_at":"2025-04-06T10:14:08.903Z","avatar_url":"https://github.com/natario1.png","language":"Kotlin","readme":"[![Build Status](https://github.com/natario1/Egloo/workflows/Build/badge.svg?event=push)](https://github.com/natario1/Egloo/actions)\n[![Release](https://img.shields.io/github/release/natario1/Egloo.svg)](https://github.com/natario1/Egloo/releases)\n[![Issues](https://img.shields.io/github/issues-raw/natario1/Egloo.svg)](https://github.com/natario1/Egloo/issues)\n\n\u0026#10240;  \u003c!-- Hack to add whitespace --\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/static/banner.png\" width=\"100%\"\u003e\n\u003c/p\u003e\n\n*Looking for a powerful camera library? Take a look at our [CameraView](https://github.com/natario1/CameraView).*\n\n*Transcoding videos with Egloo? Take a look at our [Transcoder](https://github.com/natario1/Transcoder).*\n\n*Need support, consulting, or have any other business-related question? Feel free to \u003ca href=\"mailto:mat.iavarone@gmail.com\"\u003eget in touch\u003c/a\u003e.*\n\n*Like the project, make profit from it, or simply want to thank back? Please consider [sponsoring me](https://github.com/sponsors/natario1)!*\n\n# Egloo\n\nEgloo is a simple and lightweight multiplatform framework for OpenGL ES drawing and EGL management\nthat uses object-oriented components - hence the name Egl**oo**. It can serve as a basis for\ncomplex drawing operations, but is mostly designed for helping in making common tasks simpler,\neven for people that do not have any OpenGL experience.\n\nApproaching OpenGL from high-level languages can be hard because of the deep differences in the OpenGL API design\nwith respect to a typical object-oriented context. Egloo tries to take some of these difficulties away\nby creating a **thin**, flexible layer of abstraction around EGL and GLES calls.\n\nYou can take a look at the demo app or see Egloo in action in some popular Android projects:\n\n- for camera preview and real-time filters: see [CameraView](https://github.com/natario1/CameraView)\n- in a zoomable Surface: see [ZoomLayout](https://github.com/natario1/ZoomLayout)\n- for transcoding videos: see [Transcoder](https://github.com/natario1/Transcoder)\n\nStarting from 0.5.0, Egloo can run on native targets. We provide an implementation for Android native libraries,\nbut other targets like iOS can probably be added easily.\n\n```kotlin\n// Regular Android projects\nimplementation(\"com.otaliastudios.opengl:egloo:0.6.1\")\n\n// Kotlin Multiplatform projects: add egloo-multiplatform to your common source set.\nimplementation(\"com.otaliastudios.opengl:egloo-multiplatform:0.6.1\")\n\n// Kotlin Multiplatform projects: or use the granular dependencies:\nimplementation(\"com.otaliastudios.opengl:egloo-android:0.6.1\") // Android AAR\nimplementation(\"com.otaliastudios.opengl:egloo-androidnativex86:0.6.1\") // Android Native KLib\nimplementation(\"com.otaliastudios.opengl:egloo-androidnativex64:0.6.1\") // Android Native KLib\nimplementation(\"com.otaliastudios.opengl:egloo-androidnativearm32:0.6.1\") // Android Native KLib\nimplementation(\"com.otaliastudios.opengl:egloo-androidnativearm64:0.6.1\") // Android Native KLib\n```\n\n## Features\n\n- EGL setup and management [[docs]](https://natario1.github.io/docs/egl-management)\n- GLSurfaceView utilities [[docs]](https://natario1.github.io/docs/egl-management#glsurfaceview-utilities)\n- Drawables abstraction [[docs]](https://natario1.github.io/docs/drawables)\n- Programs abstraction [[docs]](https://natario1.github.io/docs/programs)\n- Scenes to hold view and projection matrix [[docs]](https://natario1.github.io/docs/scenes)\n\n\n\u0026#10240;  \u003c!-- Hack to add whitespace --\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/static/screenshot-1.png\" width=\"250\" hspace=\"5\"\u003e\u003cimg src=\"docs/static/screenshot-2.png\" width=\"250\" hspace=\"5\"\u003e\u003cimg src=\"docs/static/screenshot-3.png\" width=\"250\" hspace=\"5\"\u003e\n\u003c/p\u003e\n\n\n\u0026#10240;  \u003c!-- Hack to add whitespace --\u003e\n\n\n## Support\n\nIf you like the project, make profit from it, or simply want to thank back, please consider \n[sponsoring me](https://github.com/sponsors/natario1) through the GitHub Sponsors program! \nYou can have your company logo here, get private support hours or simply help me push this forward. \n\nFeel free to \u003ca href=\"mailto:mat.iavarone@gmail.com\"\u003econtact me\u003c/a\u003e for support, consulting or any \nother business-related question.\n\n## Setup\n\nPlease read the [official website](https://natario1.github.io/Egloo) for setup instructions and documentation.\nYou might also be interested in our [changelog](https://natario1.github.io/Egloo/about/changelog). \nUsing Egloo is very simple. The function below will create a context, draw a red triangle and release:\n\n```kotlin\n// Configure an EGL context and window\nval core = EglCore()\nval window = EglWindowSurface(core, outputSurface)\nwindow.makeCurrent()\n\n// Draw\nval drawable = GlTriangle() // GlDrawable: what to draw\nval program = GlFlatProgram() // GlProgram: how to draw\nprogram.setColor(Color.RED)\nprogram.draw(drawable)\n\n// Publish what we have drawn\n// The outputSurface will receive our frame\nwindow.swapBuffers()\n\n// Release\nprogram.release()\nwindow.release()\ncore.release()\n```\n \n","funding_links":["https://github.com/sponsors/natario1","https://github.com/sponsors/natario1)!"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatario1%2Fegloo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatario1%2Fegloo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatario1%2Fegloo/lists"}