diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2013-08-10 01:55:05 +0200 |
---|---|---|
committer | Jorge Ruesga <jorge@ruesga.com> | 2013-08-10 01:55:05 +0200 |
commit | cc2ff076e3f2d4e9beb3e4b46280714a5206b934 (patch) | |
tree | facf870c710d2cc4d5304dcecb6a6ce215f90e71 /res | |
parent | fc2297095d5ffa7190f26c50caa06c7524aa7f57 (diff) | |
download | android_packages_wallpapers_PhotoPhase-cc2ff076e3f2d4e9beb3e4b46280714a5206b934.tar.gz android_packages_wallpapers_PhotoPhase-cc2ff076e3f2d4e9beb3e4b46280714a5206b934.tar.bz2 android_packages_wallpapers_PhotoPhase-cc2ff076e3f2d4e9beb3e4b46280714a5206b934.zip |
Advise the user about no media (#22)
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-nodpi/bg_cid_oops.png | bin | 0 -> 13522 bytes | |||
-rw-r--r-- | res/raw/mix_fragment_shader.glsl | 27 | ||||
-rw-r--r-- | res/raw/mix_vertex_shader.glsl | 27 | ||||
-rw-r--r-- | res/values/strings.xml | 3 |
4 files changed, 57 insertions, 0 deletions
diff --git a/res/drawable-nodpi/bg_cid_oops.png b/res/drawable-nodpi/bg_cid_oops.png Binary files differnew file mode 100644 index 0000000..b5373da --- /dev/null +++ b/res/drawable-nodpi/bg_cid_oops.png diff --git a/res/raw/mix_fragment_shader.glsl b/res/raw/mix_fragment_shader.glsl new file mode 100644 index 0000000..df80f89 --- /dev/null +++ b/res/raw/mix_fragment_shader.glsl @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2013 The CyanogenMod 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. + */ + +precision mediump float; + +varying vec2 vTextureCoord; +uniform sampler2D sTexture1; +uniform sampler2D sTexture2; + +void main() { + vec4 color1 = texture2D(sTexture1, vTextureCoord); + vec4 color2 = texture2D(sTexture1, vTextureCoord); + gl_FragColor = color2 * color1; +} diff --git a/res/raw/mix_vertex_shader.glsl b/res/raw/mix_vertex_shader.glsl new file mode 100644 index 0000000..dad4d5a --- /dev/null +++ b/res/raw/mix_vertex_shader.glsl @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2013 The CyanogenMod 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. + */ + +uniform mat4 uMVPMatrix; + +attribute vec4 aPosition; +attribute vec2 aTextureCoord; + +varying vec2 vTextureCoord; + +void main() { + gl_Position = uMVPMatrix * aPosition; + vTextureCoord = aTextureCoord; +} diff --git a/res/values/strings.xml b/res/values/strings.xml index 7b7a071..e9708d3 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -23,6 +23,9 @@ <!-- The app description --> <string name="app_description">PhotoPhase Live Wallpaper</string> + <!-- No images message --> + <string name="no_pictures_oops_msg">Oops, no pictures.</string> + <!-- Menus --> <string name="mnu_ok" translatable="false">@android:string/ok</string> <string name="mnu_restore">Restore</string> |