Graphics Programs Reference
In-Depth Information
Figure 2-14 . Synchronized counter application
This example gives you the basic idea of controlling the rendering on OpenGL sur-
face by the use of UI like button-views ( Figure 2-15 ).
Figure 2-15 . Using buttons to affect the rendering
Similar to the technique used here, the following topics use touch and sensors in
place of buttons to control graphic rendering on the OpenGL surface.
Take a closer look at the Counter class ( UPDOWN COUNTER/src/com/
apress/android/updowncounter/Counter.java ) and the way it has
 
 
Search WWH ::




Custom Search