Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added initial support for Nano-X (thanks Hsieh-Fu!)
- Loading branch information
Sam Lantinga
committed
May 11, 2001
1 parent
0b973f4
commit 2b4b30d
Showing
20 changed files
with
1,709 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
================================================================= | ||
Patch version 0.8 of SDL(Simple DirectMedia Layer) for Nano-X API | ||
================================================================= | ||
|
||
Author: Hsieh-Fu Tsai, clare@setabox.com | ||
|
||
There are two patch files in this package. | ||
|
||
1. The first patch file, nanox.patch, is to fix a bug in Nano-X. | ||
This patch is proposed by Gary James (gjames@twcny.rr.com). | ||
|
||
It fixes the client side GrClose(). In the original version, | ||
GrOpen() can only be called once. When the GrOpen() is called at | ||
the second time, the program will terminate. In order to prevent | ||
this situation, we need to insert "nxSocket = -1" after | ||
"close(nxSocket)" in GrClose(). If you do not have this problem, | ||
you may skip this step. | ||
|
||
============= | ||
Quick Install | ||
============= | ||
|
||
1. ./configure --disable-video-x11 --disable-video-fbcon \ | ||
--enable-video-nanox \ | ||
--with-nanox-pixel-type=[rgb/0888/888/565/555/332/pal] | ||
2. make clean | ||
3. make | ||
4. make install (as root) | ||
|
||
============ | ||
Nitty-gritty | ||
============ | ||
|
||
--with-nanox-pixel-type=[rgb/0888/888/565/555/332/pal] | ||
|
||
If the wrong pixel type is used, the program will crash when the | ||
sub-routine updates the screen. This option depends on SCREEN_PIXTYPE | ||
which is defined in Microwin0.89pre7/src/config. SCREEN_PIXTYPE | ||
is used to define the pixel type in Microwindows/Nano-X. | ||
I only test the program when the pixel type is in "rgb" | ||
(Microwin under X11) or "888" (framebuffer in 24-bit). | ||
|
||
--enable-nanox-debug Show debug messages | ||
--enable-nanox-share-memory Use shared-memory to speed up | ||
|
||
============================================= | ||
Some programs can be used to test this patch. | ||
============================================= | ||
|
||
1. http://www.cs.berkeley.edu/~weimer/atris (a tetris-like game) | ||
2. http://www.libsdl.org/projects/newvox/ | ||
3. http://www.libsdl.org/projects/xflame/ | ||
4. http://www.libsdl.org/projects/optimum/ | ||
5. http://www.gnugeneration.com/software/loop/ | ||
|
||
========= | ||
Todo List | ||
========= | ||
|
||
1. Create hardware surface | ||
2. Create YUVOverlay on hardware | ||
3. Use OpenGL | ||
4. Gamma correction | ||
5. Hide/Change mouse pointer | ||
|
||
===================== | ||
Supporting Institutes | ||
===================== | ||
|
||
Many thanks to go to Setabox Co., Ltd. and CML (Communication and | ||
Multimedia Laboratory, http://www.cmlab.csie.ntu.edu.tw/) in the | ||
Department of Computer Science and Information Engineering of | ||
National Taiwan University for supporting this porting project. | ||
|
||
=================== | ||
Contact Information | ||
=================== | ||
|
||
Welcome to give me any suggestion and to report bugs. | ||
My e-mail address : clare@setabox.com or niky@cmlab.csie.ntu.edu.tw | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
## Makefile.am for SDL using the nanox video driver | ||
|
||
noinst_LTLIBRARIES = libvideo_nanox.la | ||
libvideo_nanox_la_SOURCES = $(NANOX_SRCS) | ||
|
||
# The SDL nanox video driver sources | ||
NANOX_SRCS = \ | ||
SDL_nxmodes.c \ | ||
SDL_nxmodes_c.h \ | ||
SDL_nxmouse.c \ | ||
SDL_nxmouse_c.h \ | ||
SDL_nxvideo.c \ | ||
SDL_nxvideo.h \ | ||
SDL_nxwm.c \ | ||
SDL_nxwm_c.h \ | ||
SDL_nxevents.c \ | ||
SDL_nxevents_c.h \ | ||
SDL_nximage.c \ | ||
SDL_nximage_c.h |
Oops, something went wrong.