Difference between revisions of "SDL Water"
From ArmadeusWiki
(creation) |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Water is a small SDL applications that shows the famous demomaker's "Water effect". | + | Water is a small SDL applications that shows the famous demomaker's "Water effect". It can be useful to test the reactivity of your APF's touchscreen. |
==Installation== | ==Installation== | ||
* SDL should be already configured | * SDL should be already configured | ||
* Launch Buildroot's configuration: | * Launch Buildroot's configuration: | ||
− | + | <pre class="config"> | |
− | + | $ make menuconfig | |
− | + | Package Selection for the target ---> | |
− | + | [*] Graphic libraries and applications (graphic/text) ---> | |
+ | [*] SDL_water | ||
+ | </pre> | ||
==Usage== | ==Usage== | ||
+ | * You must have an external keyboard/mouse (USB or PS/2) connected to your board to control the application and/or a touchscreen to draw circles in the water. | ||
+ | * If you have a touchscreen, then first say SDL to use it as mouse: | ||
<pre class=apf> | <pre class=apf> | ||
− | + | export SDL_MOUSEDRV=TSLIB | |
− | # water | + | export SDL_MOUSEDEV=$TSLIB_TSDEVICE |
+ | </pre> | ||
+ | * To launch the demo (you can use your own bmp image if you want): | ||
+ | <pre class=apf> | ||
+ | # water /usr/share/images/water320.bmp | ||
</pre> | </pre> | ||
− | |||
==Links== | ==Links== | ||
+ | * [[Tslib|Touchscreen library configuration]] | ||
* [[SDL_Development]] | * [[SDL_Development]] | ||
+ | * [[USB_Host#USB_keyboard.2Fmouse_.28HID:_Human_Interface_Device.29| How to connect an USB keyboard]] | ||
+ | * [[PS/2|How to connect a PS/2 keyboard]] | ||
+ | |||
+ | [[Category:SDL]] |
Latest revision as of 10:29, 26 February 2015
Water is a small SDL applications that shows the famous demomaker's "Water effect". It can be useful to test the reactivity of your APF's touchscreen.
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/mouse (USB or PS/2) connected to your board to control the application and/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