Graphics Programs Reference
In-Depth Information
setContentView(_surfaceView);
}
}
Table 1-1.
onCreate method, lines description
Line
Description
Calls
onCreate
method of the super class
Activity
, which
takes
Bundle
as argument
1.
Requests an OpenGL surface view by calling the
view
con-
structor GLSurfaceView, which takes
Context
as argument
2.
Sets the version of OpenGL ES (in this case, ES 2.0) that will be
used by the current context's surface view
3.
Starts a separate renderer thread that will cause the rendering
(drawing) to begin
4.
setContentView
method sets
_surfaceView
object as
the content view
5.
and
1
for quick fixing errors as shown in
Figure 1-16
. (“Quick fix” is a commonly
used problem correction tool in Eclipse.) SDK will import the class, and you will
then see only 1 error.



Search WWH ::

Custom Search