waddlesplash / SDL2X11Emulation

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SDL2X11Emulation

This library was designed in order to allow programs that depend on X11 to be run on platforms that don't run a XServer. It implements all the Xlib API functions with SDL2 and 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 and see if you can get away with just SDL.

License

Copied from X.h:

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 to run on Android. This was a goal I wanted to achieve for my APython project.

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!

About

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

License:MIT License


Languages

Language:C 97.7%Language:C++ 1.7%Language:CMake 0.4%Language:Python 0.1%Language:Makefile 0.0%