summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-2.30.2/docs/README-directfb.md
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-05-04 16:51:29 -0700
committer3gg <3gg@shellblade.net>2024-05-04 16:51:29 -0700
commit8222bfe56d4dabe8d92fc4b25ea1b0163b16f3e1 (patch)
tree763389e42276035ac134d94eb1dc32293b88d807 /src/contrib/SDL-2.30.2/docs/README-directfb.md
Initial commit.
Diffstat (limited to 'src/contrib/SDL-2.30.2/docs/README-directfb.md')
-rw-r--r--src/contrib/SDL-2.30.2/docs/README-directfb.md123
1 files changed, 123 insertions, 0 deletions
diff --git a/src/contrib/SDL-2.30.2/docs/README-directfb.md b/src/contrib/SDL-2.30.2/docs/README-directfb.md
new file mode 100644
index 0000000..bbc6e99
--- /dev/null
+++ b/src/contrib/SDL-2.30.2/docs/README-directfb.md
@@ -0,0 +1,123 @@
1DirectFB
2========
3
4Supports:
5
6- Hardware YUV overlays
7- OpenGL - software only
8- 2D/3D accelerations (depends on directfb driver)
9- multiple displays
10- windows
11
12What you need:
13
14* DirectFB 1.0.1, 1.2.x, 1.3.0
15* Kernel-Framebuffer support: required: vesafb, radeonfb ....
16* Mesa 7.0.x - optional for OpenGL
17
18The `/etc/directfbrc` file should contain the following lines to make
19your joystick work and avoid crashes:
20
21```
22disable-module=joystick
23disable-module=cle266
24disable-module=cyber5k
25no-linux-input-grab
26```
27
28To disable to use x11 backend when DISPLAY variable is found use
29
30```
31export SDL_DIRECTFB_X11_CHECK=0
32```
33
34To disable the use of linux input devices, i.e. multimice/multikeyboard support,
35use
36
37```
38export SDL_DIRECTFB_LINUX_INPUT=0
39```
40
41To use hardware accelerated YUV-overlays for YUV-textures, use:
42
43```
44export SDL_DIRECTFB_YUV_DIRECT=1
45```
46
47This is disabled by default. It will only support one
48YUV texture, namely the first. Every other YUV texture will be
49rendered in software.
50
51In addition, you may use (directfb-1.2.x)
52
53```
54export SDL_DIRECTFB_YUV_UNDERLAY=1
55```
56
57to make the YUV texture an underlay. This will make the cursor to
58be shown.
59
60Simple Window Manager
61=====================
62
63The driver has support for a very, very basic window manager you may
64want to use when running with `wm=default`. Use
65
66```
67export SDL_DIRECTFB_WM=1
68```
69
70to enable basic window borders. In order to have the window title rendered,
71you need to have the following font installed:
72
73```
74/usr/share/fonts/truetype/freefont/FreeSans.ttf
75```
76
77OpenGL Support
78==============
79
80The following instructions will give you *software* OpenGL. However this
81works at least on all directfb supported platforms.
82
83As of this writing 20100802 you need to pull Mesa from git and do the following:
84
85```
86git clone git://anongit.freedesktop.org/git/mesa/mesa
87cd mesa
88git checkout 2c9fdaf7292423c157fc79b5ce43f0f199dd753a
89```
90
91Edit `configs/linux-directfb` so that the Directories-section looks like this:
92
93```
94# Directories
95SRC_DIRS = mesa glu
96GLU_DIRS = sgi
97DRIVER_DIRS = directfb
98PROGRAM_DIRS =
99```
100
101Then do the following:
102
103```
104make linux-directfb
105make
106
107echo Installing - please enter sudo pw.
108
109sudo make install INSTALL_DIR=/usr/local/dfb_GL
110cd src/mesa/drivers/directfb
111make
112sudo make install INSTALL_DIR=/usr/local/dfb_GL
113```
114
115To run the SDL - testprograms:
116
117```
118export SDL_VIDEODRIVER=directfb
119export LD_LIBRARY_PATH=/usr/local/dfb_GL/lib
120export LD_PRELOAD=/usr/local/dfb_GL/libGL.so.7
121
122./testgl
123```