Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bluecannonball/libglxcomposite
Library for writing OpenGL X11 compositors.
https://github.com/bluecannonball/libglxcomposite
opengl x11
Last synced: 9 days ago
JSON representation
Library for writing OpenGL X11 compositors.
- Host: GitHub
- URL: https://github.com/bluecannonball/libglxcomposite
- Owner: BlueCannonBall
- License: mpl-2.0
- Created: 2022-02-19T03:38:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-20T22:58:30.000Z (10 months ago)
- Last Synced: 2024-01-21T04:25:47.493Z (10 months ago)
- Topics: opengl, x11
- Language: C++
- Homepage:
- Size: 79.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libglxcomposite
Library for writing OpenGL X11 compositors.## Usage
Start by creating a `GLXCCompositor` object. The `GLXCCompositor` object is the heart of the library, and almost every subroutine in the library operates on it. The `size_t glxc_get_windows(GLXCCompositor* compositor, const GLXCWindowInfo** ret)` subroutine can be used to get a list of all existing `GLXCWindowInfo` objects, as well as their properties (position, dimensions, etc). These objects can then be passed to `glxc_bind_window_texture(GLXCCompositor*, GLXCWindowInfo*)` and `glx_unbind_window_texture(GLXCCompositor*, GLXCWindowInfo*)` to bind their textures. Make sure to call `glxc_handle_events(GLXCCompositor*)` between frames to keep the internal window list updated.