Reimplementing the Simple Triangle OpenGL Drawing

Now that the AbstractRenderer is in place, we'll show you how to create a small activity that draws the same simple OpenGL triangle you drew in Chapter 10. We will use the following files to demonstrate this exercise:

• AbstractRenderer.java

• SimpleTriangleRenderer.java

• OpenGL15TestHarnessActivity.java

We presented the code for AbstractRenderer in the preceding section (see Listing 13-2), so now we'll show you the code for SimpleTriangleRenderer.

0 0

Post a comment