Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abestanis/sdl2x11emulation

A library that implements the X11 Api with SDL. Designed to work with Tk.
https://github.com/abestanis/sdl2x11emulation

emulation sdl x11

Last synced: 9 days ago
JSON representation

A library that implements the X11 Api with SDL. Designed to work with Tk.

Awesome Lists containing this project

README

        

# SDL2X11Emulation
This library was designed in order to allow programs that depend on [X11](https://en.wikipedia.org/wiki/X_Window_System)
to be run on platforms that don't run a XServer.
It implements all the Xlib API functions with [SDL2](https://www.libsdl.org/) and [SDL_gpu](http://dinomage.com/reference/SDL_gpu/).

Note: SDL_gpu requires OpenGl, OpenGL ES or some graphics API to be avaliable on the target system. If your target system does not support that, you could try to revert the changes made in [this patch](https://github.com/Abestanis/SDL2X11Emulation/commit/cb26a90e22837256a31dbd89abf477377000f9bb) and see if you can get away with just SDL.

## License
Copied from [X.h](https://github.com/Abestanis/SDL2X11Emulation/blob/master/include/X11/X.h#L11):
```
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
and the Massachusetts Institute of Technology, Cambridge, Massachusetts.

All Rights Reserved

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the names of Digital or MIT not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.

DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
```

## Background
I designed this library in order to allow [Tk](https://www.tcl.tk/) to run on Android.
This was a goal I wanted to achieve for my [APython project](https://github.com/Abestanis/APython).

## Progress and Contribution
This library is not finished and it will probably never have the performance of the real X-System.
I never heard of X11 before I started this project and the documentation is not really easy to understand.
Also, I never used SDL before. Consequently, every and all help is appreciated, and if you look over the code
and see something that is wrong or that could be improved, please tell me so I can fix it!

Thank you!