[Piglit] [PATCH 1/3] Add eglut utility

Kristian Høgsberg krh at bitplanet.net
Thu Oct 21 19:30:50 PDT 2010


On Thu, Oct 21, 2010 at 9:54 PM, Ian Romanick <idr at freedesktop.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Shuang He wrote:
>> These are directly copied from mesa/demos
>> ---
>>  tests/util/CMakeLists.txt       |    5 +
>>  tests/util/eglut/CMakeLists.txt |   18 ++
>>  tests/util/eglut/eglut.c        |  348 +++++++++++++++++++++++++++++++++++++++
>>  tests/util/eglut/eglut.h        |   68 ++++++++
>>  tests/util/eglut/eglut_x11.c    |  220 ++++++++++++++++++++++++
>>  tests/util/eglut/eglutint.h     |   78 +++++++++
>>  6 files changed, 737 insertions(+), 0 deletions(-)
>>  create mode 100644 tests/util/eglut/CMakeLists.txt
>>  create mode 100644 tests/util/eglut/eglut.c
>>  create mode 100644 tests/util/eglut/eglut.h
>>  create mode 100644 tests/util/eglut/eglut_x11.c
>>  create mode 100644 tests/util/eglut/eglutint.h
>
> If this is just GLUT for EGL, the functions should keep their GLUT
> names.  Changing the names means that we have to change all of the tests
> (or add wrappers).  That's just silly.  GLUT is already a window system
> abstraction layer that works on Windows, X, and Mac OS.  EGL is just
> another possible target.

It's not, since EGL is already platform independent, eglut only
abstracts out surface creation and window system things such as input
events.  eglut also adds API to let the application specify which
client API it wants to use.

Kristian


More information about the Piglit mailing list