diff options
author | Winson Chung <winsonc@google.com> | 2011-09-20 18:29:14 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-09-22 16:44:17 -0700 |
commit | 1d1672900d5f7625022d4fcc89b36dc3137dcb62 (patch) | |
tree | a409f2d756eea3b51095bf8ce124c7047f8eecc1 /res | |
parent | a467e16e4ae40c1ebba12a93315adbab4226e29e (diff) | |
download | android_packages_wallpapers_PhaseBeam-1d1672900d5f7625022d4fcc89b36dc3137dcb62.tar.gz android_packages_wallpapers_PhaseBeam-1d1672900d5f7625022d4fcc89b36dc3137dcb62.tar.bz2 android_packages_wallpapers_PhaseBeam-1d1672900d5f7625022d4fcc89b36dc3137dcb62.zip |
Adding PhaseBeam wallpaper.
Change-Id: I253ccb8c8af5cf0d4bc362fc4391af4fd7064c86
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-nodpi/beam.png | bin | 0 -> 4614 bytes | |||
-rw-r--r-- | res/drawable-nodpi/bg.png | bin | 0 -> 111744 bytes | |||
-rw-r--r-- | res/drawable-nodpi/dot.png | bin | 0 -> 7547 bytes | |||
-rw-r--r-- | res/drawable-nodpi/icon.png | bin | 0 -> 4147 bytes | |||
-rw-r--r-- | res/drawable-nodpi/wallpaper_thumb.png | bin | 0 -> 18706 bytes | |||
-rw-r--r-- | res/layout/main.xml | 12 | ||||
-rw-r--r-- | res/raw/dot_fs.glsl | 6 | ||||
-rw-r--r-- | res/raw/dot_vs.glsl | 11 | ||||
-rw-r--r-- | res/values/strings.xml | 6 | ||||
-rw-r--r-- | res/xml/wallpaper.xml | 23 |
10 files changed, 58 insertions, 0 deletions
diff --git a/res/drawable-nodpi/beam.png b/res/drawable-nodpi/beam.png Binary files differnew file mode 100644 index 0000000..e687f12 --- /dev/null +++ b/res/drawable-nodpi/beam.png diff --git a/res/drawable-nodpi/bg.png b/res/drawable-nodpi/bg.png Binary files differnew file mode 100644 index 0000000..987555d --- /dev/null +++ b/res/drawable-nodpi/bg.png diff --git a/res/drawable-nodpi/dot.png b/res/drawable-nodpi/dot.png Binary files differnew file mode 100644 index 0000000..0a541da --- /dev/null +++ b/res/drawable-nodpi/dot.png diff --git a/res/drawable-nodpi/icon.png b/res/drawable-nodpi/icon.png Binary files differnew file mode 100644 index 0000000..8074c4c --- /dev/null +++ b/res/drawable-nodpi/icon.png diff --git a/res/drawable-nodpi/wallpaper_thumb.png b/res/drawable-nodpi/wallpaper_thumb.png Binary files differnew file mode 100644 index 0000000..29d7a70 --- /dev/null +++ b/res/drawable-nodpi/wallpaper_thumb.png diff --git a/res/layout/main.xml b/res/layout/main.xml new file mode 100644 index 0000000..8eab2f8 --- /dev/null +++ b/res/layout/main.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > +<TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/wallpaper_label" + /> +</LinearLayout> diff --git a/res/raw/dot_fs.glsl b/res/raw/dot_fs.glsl new file mode 100644 index 0000000..3ef90ed --- /dev/null +++ b/res/raw/dot_fs.glsl @@ -0,0 +1,6 @@ +varying float pointSize; + +void main() { + gl_FragColor = texture2D(UNI_Tex0, gl_PointCoord); + gl_FragColor.a = pointSize; +}
\ No newline at end of file diff --git a/res/raw/dot_vs.glsl b/res/raw/dot_vs.glsl new file mode 100644 index 0000000..3a82eba --- /dev/null +++ b/res/raw/dot_vs.glsl @@ -0,0 +1,11 @@ +varying float pointSize; + +void main() { + vec4 objPos = vec4(ATTRIB_position, 1.0); + float tmpPointSize = objPos.z*10.0; + pointSize = 0.5-tmpPointSize/800.0; + objPos.z = 0.0; + objPos.x = objPos.x - ATTRIB_offsetX * tmpPointSize/100.0; + gl_Position = objPos; + gl_PointSize = tmpPointSize*UNI_scaleSize; +}
\ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml new file mode 100644 index 0000000..67f209d --- /dev/null +++ b/res/values/strings.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <string name="wallpaper_label">Phase Beam</string> + <string name="wallpaper_author">Google</string> + <string name="wallpaper_description">DESC</string> +</resources> diff --git a/res/xml/wallpaper.xml b/res/xml/wallpaper.xml new file mode 100644 index 0000000..71a9574 --- /dev/null +++ b/res/xml/wallpaper.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/** + * Copyright (c) 2010, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<wallpaper xmlns:android="http://schemas.android.com/apk/res/android" + android:author="@string/wallpaper_author" + android:description="@string/wallpaper_description" + android:thumbnail="@drawable/wallpaper_thumb" /> |