Difference between revisions of "SDL Water"
From ArmadeusWiki
m (→Links) |
m (→Usage) |
||
Line 10: | Line 10: | ||
==Usage== | ==Usage== | ||
− | * You must have an external keyboard (USB or PS/2) connected to your board to control the application or a | + | * You must have an external keyboard (USB or PS/2) connected to your board to control the application or a Touchscreen to draw circles in the water. |
− | * If you have a Touchscreen, then say SDL | + | * If you have a Touchscreen, then first say SDL to use it as mouse: |
<pre class=apf> | <pre class=apf> | ||
export SDL_MOUSEDRV=TSLIB | export SDL_MOUSEDRV=TSLIB | ||
export SDL_MOUSEDEV=$TSLIB_TSDEVICE | export SDL_MOUSEDEV=$TSLIB_TSDEVICE | ||
</pre> | </pre> | ||
− | * To launch the demo: | + | * To launch the demo (you can use your own bmp image if you want): |
<pre class=apf> | <pre class=apf> | ||
− | # | + | # water /usr/share/images/water320.bmp |
− | + | ||
</pre> | </pre> | ||
Revision as of 17:38, 28 January 2009
Water is a small SDL applications that shows the famous demomaker's "Water effect".
Installation
- SDL should be already configured
- Launch Buildroot's configuration:
$ make menuconfig Package Selection for the target ---> [*] Graphic libraries and applications (graphic/text) ---> [*] SDL_water
Usage
- You must have an external keyboard (USB or PS/2) connected to your board to control the application or a Touchscreen to draw circles in the water.
- If you have a Touchscreen, then first say SDL to use it as mouse:
export SDL_MOUSEDRV=TSLIB export SDL_MOUSEDEV=$TSLIB_TSDEVICE
- To launch the demo (you can use your own bmp image if you want):
# water /usr/share/images/water320.bmp