[Mesa-dev] [PATCH] mesa-demos: Add blinking-teapot demo.

Brian Paul brianp at vmware.com
Wed Nov 16 15:21:51 PST 2011


On 11/16/2011 12:45 PM, vlj wrote:
>     blinking-teapot is an UBO demo.
> ---
>   src/glsl/CMakeLists.txt       |    1 +
>   src/glsl/Makefile.am          |    2 +
>   src/glsl/blinking-teapot.c    |  177 +++++++++++++++++++++++++++++++++++++++++
>   src/glsl/blinking-teapot.frag |   31 +++++++
>   src/glsl/blinking-teapot.vert |   16 ++++
>   5 files changed, 227 insertions(+), 0 deletions(-)
>   create mode 100644 src/glsl/blinking-teapot.c
>   create mode 100644 src/glsl/blinking-teapot.frag
>   create mode 100644 src/glsl/blinking-teapot.vert
>

This looks better.  Two more suggestions:

1. Call glutExtensionSupported("GL_ARB_uniform_buffer_object") to 
check that the extension is supported.

2. It would be nice if hitting Esc would exit the demo, like the other 
demos.

-Brian


More information about the mesa-dev mailing list