Eric Anholt
68fc4b415e
Remove demos that have moved to git+ssh://git.freedesktop.org/git/mesa/demos.
...
The remaining programs are ones I've had difficulty finding a build
environment for to make the build system or are unit tests that should
probably live next to their code instead. Hopefully people can bring
over the build for remaining pieces they care about.
2010-05-21 12:20:39 -07:00
Chia-I Wu
70ae8bf26f
progs/egl: Fix building on cygwin.
...
Update the Makefiles to use variables such as EGL_LIB_NAME. Define M_PI
if it hasn't been defined yet.
2010-05-19 13:39:40 -06:00
Chia-I Wu
781d56eac4
progs/egl: Fix eglut with OpenGL ES 2.0.
...
EGL_OPENGL_ES2_BIT is not set when choosing OpenGL ES 2.0 configs.
2010-05-05 12:29:19 +08:00
Kristian Høgsberg
642839824e
progs/egl/opengles2: Add es2gears demo
...
Because every subdirectory under progs has to have a version of gears.
2010-05-03 21:21:58 -04:00
Chia-I Wu
fbfecda6ae
progs/egl: Add egl/eglut to PROGRAM_DIRS.
...
Make sure eglut is built before the demos. This should work more
reliably with make -j<N>.
2010-04-27 14:19:24 +08:00
Dan Nicholson
a69ef34640
egl: Fix demos to build with user specified Xlib
...
Commit 88be2171e7
fixed the egl demos on the stable branch, but now
they're spread out across multiple subdirectories.
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com >
2010-04-19 20:25:17 -07:00
Jakob Bornecrantz
36667036e8
progs/egl: Add lib directories to OpenVG demos
2010-04-12 01:50:52 +02:00
Chia-I Wu
ba81b0743e
Fix copyright headers.
...
Update the warranty disclaimer to use the more general "THE AUTHORS OR
COPYRIGHT HOLDERS". This is done manually on files created by me. Hope
that I do not miss anything.
2010-04-10 01:20:57 +08:00
Chia-I Wu
216c76c820
progs/egl: Correctly check GL_OES_EGL_image.
...
The hack was added because GL_OES_EGL_image was not exported in the
extension string.
2010-04-06 18:54:23 +08:00
Chia-I Wu
0942ed45b3
progs/egl: Fix the blank window in pbuffer demo.
...
EGL requires eglSwapBuffers to be called on the current surface.
2010-04-06 13:48:59 +08:00
Chia-I Wu
f51f62e8ed
progs/egl: Port drawtex and torus to eglut.
...
This brings the demos also to KMS and removes about 400 duplicated lines
of code.
2010-04-06 13:48:59 +08:00
Chia-I Wu
ad3575e2dd
progs/egl: Add an OpenGL ES demo for EGL_OES_image_pixmap.
...
The demo uses a Pixmap as its drawing area, and whatever is drawn on the
pixmap will be used as a texture to draw a cube.
2010-04-04 22:07:20 +08:00
Chia-I Wu
c36d15d158
progs/egl: Update .gitignore.
2010-04-02 10:03:31 +08:00
Chia-I Wu
1054f22e48
progs/egl: Link to eglut first.
...
This moves eglut before EGL so that the symbols can be resolved.
2010-04-02 10:01:00 +08:00
Chia-I Wu
532b7400fd
progs/egl: Port OpenVG lion and sp to eglut.
2010-04-01 22:25:50 +08:00
Chia-I Wu
7b48d88407
progs/egl: Port ES1 gears to eglut.
...
As gears in the last demo under "screen" subdirectory, this also removes
the directory.
2010-04-01 22:25:49 +08:00
Chia-I Wu
dd7276f494
progs/egl: Port ES1 tri to eglut.
...
This also removes EGL_MESA_screen_surface version of ES1 tri as eglut
supports the extension.
2010-04-01 22:25:49 +08:00
Chia-I Wu
765b30849c
progs/egl: Replace egltri by xegl_tri.
...
With the switch to eglut, xegl_tri supports both X11 and
EGL_MESA_screen_surface. Have it replace egltri.
2010-04-01 22:25:49 +08:00
Chia-I Wu
02551cab47
progs/egl: Porg xegl_tri to eglut.
2010-04-01 22:25:49 +08:00
Chia-I Wu
589f6740ea
progs/egl: Port eglgears to eglut.
2010-04-01 22:25:49 +08:00
Chia-I Wu
57cc1db87b
progs/egl: Add eglut.
...
eglut is a simple library with GLUT-like API. It is intended to be used
by simple EGL demos.
2010-04-01 22:25:48 +08:00
Chia-I Wu
fc3ddd4b56
progs/openvg: Move OpenVG demos to a subdirectory of progs/egl.
...
That is, move
progs/openvg/demos to progs/egl/openvg,
progs/openvg/trivial to progs/egl/openvg/trivial.
2010-04-01 22:25:48 +08:00
Chia-I Wu
7f231cab2b
progs/es: Move OpenGL ES demos to subdirectories of progs/egl.
...
Move
progs/es1/xegl -> progs/egl/opengles1,
progs/es1/screen -> progs/egl/opengles1/screen,
progs/es2/xegl -> progs/egl/opengles2.
2010-04-01 22:25:48 +08:00
Chia-I Wu
c727ef0108
progs/egl: Move demos a level deeper.
...
Move the demos to "opengl" subdirectory.
2010-04-01 22:25:48 +08:00
Chia-I Wu
99386921e7
progs/egl: Link xeglthreads to libpthread.
...
This should hopefully fix a build failure reported by Chris Ball when
binutils-gold is used.
2010-03-24 08:46:10 +08:00
Dan Nicholson
e725ef171b
Change libX11 variables to not conflict with AC_PATH_XTRA
...
The variable X_LIBS from AC_PATH_XTRA contains only the -L searchdir
parameter and not the -lX11 to link to Xlib. Use X11 prefixed build vars
for linking with Xlib to avoid the conflict.
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com >
2010-03-23 13:26:50 -07:00
Jeff Smith
8d86d395dc
Use X_LIBS from pkg-config, instead of libdir, for locating libX11
...
Signed-off-by: Jeff Smith <whydoubt@yahoo.com >
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com >
2010-03-13 11:42:24 -08:00
Jeff Smith
9787060423
Add -L$(libdir) for xdemos and egl so that the right libX11 is found
...
Signed-off-by: Jeff Smith <whydoubt@yahoo.com >
Signed-off-by: Brian Paul <brianp@vmware.com >
2010-03-12 08:56:06 -07:00
Kristian Høgsberg
69a0f375cc
eglinfo: Wrap extension string
2010-02-26 15:11:29 -05:00
Kristian Høgsberg
a509b8cc24
xeglgears: Add an case that exercises EGL_KHR_gl_renderbuffer_image
2010-02-26 14:52:14 -05:00
Kristian Høgsberg
88c174d182
xeglgears: Clean up the code a bit
...
Still a mess...
2010-02-26 13:18:47 -05:00
Kristian Høgsberg
b7041db8f8
xeglgears: Update help text
2010-02-24 20:08:54 -05:00
Kristian Høgsberg
f272a780af
xeglgears: Remove borrowed GL_OES_EGL_image types
...
These are now in gl.h.
2010-02-24 14:36:56 -05:00
Kristian Høgsberg
61cc18a866
xeglgears: Add test case for texturing from an EGLImage
2010-02-24 14:28:42 -05:00
Ray Kohler
701ac58a0c
Link egl progs to libm as necessary.
...
Signed-off-by: Ray Kohler <ataraxia937@gmail.com >
2010-02-22 01:26:12 +08:00
Kristian Høgsberg
368bb3dc2b
eglinfo: Also print visual type, assuming X visual types
...
This may not make a lot of sense for non-X EGL, but for EGL under X
it's very useful.
2010-02-09 21:24:14 -05:00
Kristian Høgsberg
ab487f7ffa
xeglgears: Add test case for eglBindTexImage()
2010-02-09 15:55:25 -05:00
Chia-I Wu
89e6eb5fbe
progs/egl: Update eglinfo to display more attributes.
...
Add config caveat, bind-to-texture, and renderable type. Remove double
buffer and stereo attributes.
2010-01-31 11:20:15 +08:00
Chia-I Wu
7056a74734
progs/es1: Add bindtex.
...
It is ported from progs/egl/xeglbindtex.c. With the OpenGL ES port, the
OpenGL version is removed.
2010-01-30 23:16:17 +08:00
Chia-I Wu
0928418922
Revert "add segl"
...
This reverts commit fe33b7083b
. It was
not supposed to be pushed yet.
2010-01-23 10:33:03 +08:00
Chia-I Wu
fe33b7083b
add segl
2010-01-23 10:10:47 +08:00
Chia-I Wu
8311a49b2d
progs/egl: Pass EGLDisplay to eglCopyBuffers.
...
X Display was wrongly passed to eglCopyBuffers.
2010-01-18 17:07:19 +08:00
Chia-I Wu
472a601966
progs/egl: Fix screen surface demos.
...
Set the screen surface size to the mode size, as the spec requires the
screen surface size to be larger than the mode size. Besides, bind the
API to OpenGL as they are written in it.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2010-01-12 10:55:35 +08:00
Chia-I Wu
c657c80180
progs/egl: glGenTextures is called too early in xeglbindtex.
...
It should be called after eglMakeCurrent.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2010-01-12 10:55:35 +08:00
Chia-I Wu
3bcb08f6c4
progs: Check the number of configs returned by eglChooseConfig.
...
A successful eglChooseConfig call does not imply there are valid
configs.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2010-01-12 10:55:35 +08:00
Chia-I Wu
033bd95802
progs: Add missing EGL_RENDERABLE_TYPE for EGL demos.
...
The default value of EGL_RENDERABLE_TYPE is EGL_OPENGL_ES_BIT. The
proper values should be specified if we are not using OpenGL ES.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2010-01-12 10:55:35 +08:00
Vinson Lee
8a29e3f8e8
progs/egl: Silence uninitialized variable warnings.
2010-01-03 21:39:20 -08:00
Chia-I Wu
4e2bdd6635
progs/egl: Add support for pixmap and pbuffer surface to xeglgears.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-22 09:33:27 -06:00
Brian Paul
5b7d9053a0
progs/egl: put declarations before code
2009-10-15 13:00:03 -06:00
Chia-I Wu
e82b02c7e8
progs/egl: Make demo3 work again.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-09-30 08:15:30 -06:00