{"id":19602526,"url":"https://github.com/wang-bin/ugs","last_synced_at":"2025-10-04T01:31:46.637Z","repository":{"id":141348973,"uuid":"118086559","full_name":"wang-bin/ugs","owner":"wang-bin","description":"universal graphics surface","archived":false,"fork":false,"pushed_at":"2024-10-23T07:49:16.000Z","size":262,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-14T09:43:23.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wang-bin.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}},"created_at":"2018-01-19T06:29:25.000Z","updated_at":"2024-10-23T07:49:20.000Z","dependencies_parsed_at":"2023-12-12T16:26:38.470Z","dependency_job_id":"f7f8b6d8-164b-4a0d-81f2-5c14c21256e0","html_url":"https://github.com/wang-bin/ugs","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/wang-bin%2Fugs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang-bin%2Fugs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang-bin%2Fugs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang-bin%2Fugs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wang-bin","download_url":"https://codeload.github.com/wang-bin/ugs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235208970,"owners_count":18953003,"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":[],"created_at":"2024-11-11T09:24:44.201Z","updated_at":"2025-10-04T01:31:41.263Z","avatar_url":"https://github.com/wang-bin.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UGS: Universal Graphic Surface\n\n### PlatformSurface\n\nThe layer between platform depended window/view/surface handle and GFX context. For example OpenGL context can be created via `nativeHandleForGL()` depending on `type()` and `nativeResource()` when necessary.\n\n- A wrapper for platform dependent handle: macOS NSView, iOS UIView, android jni Surface object, win32 HWND\n- Internally created handle: win32, x11, gbm, wayland, rpi dispmanx\n\n\n### RenderLoop\n\nIt's an abstract class implements threaded rendering loop with any number of `PlatformSurface`.\n\nA derived class only need to implement how to manage GFX context for a given surface, for example, create/destroy/active/swap OpenGL context.\n\nDo your rendering jobs in `RenderLoop` callbacks.\n\n### TODO\n- platform surface wrapper around more native handle types: wayland, xlib, xcb, gbm\n- internal created handles: macOS\n\n\u003e License: [MPL version 2.0](http://mozilla.org/MPL/2.0/). You can freely use it in your commercial or opensource software.\n\n\u003e Wang Bin, wbsecg1 at gmail.com, 2017~2020\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwang-bin%2Fugs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwang-bin%2Fugs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwang-bin%2Fugs/lists"}