aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/powervr-drivers/bc-cube
diff options
context:
space:
mode:
authorKoen Kooi <k-kooi@ti.com>2010-03-26 13:33:25 +0100
committerKoen Kooi <koen@openembedded.org>2010-04-12 19:43:30 +0200
commitf3a0fae8ea873099a17dc93939a9941306582bfe (patch)
tree6f351bb94daffe0e808cac380221ba1ee233db05 /recipes/powervr-drivers/bc-cube
parent815e3891d829d6c8f29a32362e615683c4552fcf (diff)
downloadopenembedded-f3a0fae8ea873099a17dc93939a9941306582bfe.tar.gz
bc-cube: add 0.2.0 with desktop file to launch it using a GUI
Diffstat (limited to 'recipes/powervr-drivers/bc-cube')
-rw-r--r--[-rwxr-xr-x]recipes/powervr-drivers/bc-cube/bc-cat-0.1.0-BC_PIX_FMT_.patch0
-rw-r--r--recipes/powervr-drivers/bc-cube/bc-cat-0.2.0.patch67
-rw-r--r--recipes/powervr-drivers/bc-cube/bc-cube.desktop8
3 files changed, 75 insertions, 0 deletions
diff --git a/recipes/powervr-drivers/bc-cube/bc-cat-0.1.0-BC_PIX_FMT_.patch b/recipes/powervr-drivers/bc-cube/bc-cat-0.1.0-BC_PIX_FMT_.patch
index 0d94a1bcaf..0d94a1bcaf 100755..100644
--- a/recipes/powervr-drivers/bc-cube/bc-cat-0.1.0-BC_PIX_FMT_.patch
+++ b/recipes/powervr-drivers/bc-cube/bc-cat-0.1.0-BC_PIX_FMT_.patch
diff --git a/recipes/powervr-drivers/bc-cube/bc-cat-0.2.0.patch b/recipes/powervr-drivers/bc-cube/bc-cat-0.2.0.patch
new file mode 100644
index 0000000000..99afb2cea5
--- /dev/null
+++ b/recipes/powervr-drivers/bc-cube/bc-cat-0.2.0.patch
@@ -0,0 +1,67 @@
+diff -Nurd bc-cat-0.2.0-old/test/cmem.c bc-cat-0.2.0/test/cmem.c
+--- bc-cat-0.2.0-old/test/cmem.c 2010-03-24 19:17:15.000000000 +0100
++++ bc-cat-0.2.0/test/cmem.c 2010-03-26 11:26:43.000000000 +0100
+@@ -166,7 +166,7 @@
+ modelview[9] = -sx;
+ modelview[10] = cx * cy;
+
+- glClearColor (0.0, 0.0, 0.0, 1.0);
++ glClearColor (0.0, 0.0, 0.0, 0.0);
+ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ glUseProgram(program[0]);
+diff -Nurd bc-cat-0.2.0-old/test/common.c bc-cat-0.2.0/test/common.c
+--- bc-cat-0.2.0-old/test/common.c 2010-03-24 19:24:56.000000000 +0100
++++ bc-cat-0.2.0/test/common.c 2010-03-26 11:23:13.000000000 +0100
+@@ -364,6 +364,7 @@
+ r = (float)w / h;
+
+ glViewport(0, 0, w, h);
++#ifndef GLES_20
+ glMatrixMode(GL_PROJECTION);
+ glLoadIdentity();
+
+@@ -376,7 +377,7 @@
+
+ glMatrixMode(GL_MODELVIEW);
+ glLoadIdentity();
+-
++#endif
+ break;
+ case Expose:
+ /*must handle this, otherwise, background does not redraw*/
+diff -Nurd bc-cat-0.2.0-old/test/mmap.c bc-cat-0.2.0/test/mmap.c
+--- bc-cat-0.2.0-old/test/mmap.c 2010-03-24 19:17:15.000000000 +0100
++++ bc-cat-0.2.0/test/mmap.c 2010-03-26 11:26:49.000000000 +0100
+@@ -136,7 +136,7 @@
+ modelview[9] = -sx;
+ modelview[10] = cx * cy;
+
+- glClearColor (0.0, 0.0, 0.0, 1.0);
++ glClearColor (0.0, 0.0, 0.0, 0.0);
+ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ glUseProgram(program[0]);
+diff -Nurd bc-cat-0.2.0-old/test/webcam.c bc-cat-0.2.0/test/webcam.c
+--- bc-cat-0.2.0-old/test/webcam.c 2010-03-24 19:17:15.000000000 +0100
++++ bc-cat-0.2.0/test/webcam.c 2010-03-26 11:27:29.000000000 +0100
+@@ -338,7 +338,7 @@
+ modelview[9] = -sx;
+ modelview[10] = cx * cy;
+
+- glClearColor (0.0, 0.0, 0.0, 1.0);
++ glClearColor (0.0, 0.0, 0.0, 0.0);
+ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ glUseProgram(program[0]);
+@@ -372,8 +372,8 @@
+
+ eglSwapBuffers(dpy, surface);
+
+- rot_x += 0.01;
+- rot_y += 0.01;
++ rot_x += 0.02;
++ rot_y += 0.02;
+ }
+ #else
+
diff --git a/recipes/powervr-drivers/bc-cube/bc-cube.desktop b/recipes/powervr-drivers/bc-cube/bc-cube.desktop
new file mode 100644
index 0000000000..e9db6ba65c
--- /dev/null
+++ b/recipes/powervr-drivers/bc-cube/bc-cube.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Texture streaming Demo
+Comment=TI Webcam texture streaming demo
+Exec=gles2_bc_webcam-x11
+Icon=star
+Type=Application
+Categories=Graphics;3DGraphics;
+