V

validity, surface creation, 178-179

Variables view, 45

528-530, 574-575 Vector2 instances, 362-363, 403, 559, 571

Vector2.angle( ) method, 362, 530 Vector2.dist( ) method, 380 Vector2.distSquared( ) method, 380 Vector2.rotate( ) method, 416 Vector3 class, 527-528, 574-575 Vector3 instances, 556, 571-572 Vector3 members, 529 vectors

2D programming, 352-365 example, 360-365 implementing classes, 357-360 trigonometry, 355-357 3D programming, 526-530 Velocity and acceleration, 352 versionCode attribute, 105 versionName attribute, 105 vertex attribute, 569 vertex normals, 533-534 VERTEX_SIZE, 303 vertexSize member, 542, 570 vertical synchronization (vsync), of graphics, 82-83

vertices

3D animation, 490-495 example, 492-495 Vertices3 class, 490-492 binding, 345-349 indexed, 315-321

example code, 316-318 Vertices class, 318-321 sending to OpenGL ES, 294-296 specifying color, 300-304 vertices array, 567 Vertices class, 318-322, 348, 351,

420-421, 489-490 Vertices instances, 323, 361-362, 369,

396,407,411, 413-415 Vertices instantiation, 418 Vertices members, 418 vertices parameter, 421 vertices[0], 567

vertices[1], 567 vertices[2], 567

Vertices3 class, 490-492, 541, 543, 566 Vertices3 constructor, 494 Vertices3 instances, 494-495, 500, 502,

510, 516, 544, 547, 566, 569 Vertices3 member, 544 Vertices3Screen, 494, 497 Vertices3.setVertices( ) method, 492, 494

Vertices3Test, 492, 497 Vertices.bind( ) method, 347-348 verticesBuffer, 414-415 vertices.draw( ) method, 323, 328,

345-347, 502 vertices.position( ) method, 492 vertices.position(2), 301 Vertices.setVertices( ) method, 420 Vertices.unbind( ) method, 347 verts array, 569, 571 View class, 160, 162, 180, 278, 283 view concept, 31 view volume, 271 View.invalidate( ) method, 161 View.onDraw( ) method, 160 viewport defining, 288-289 overview, 275 Viewport OpenGL ES, 272 viewportHeight, 275 viewportWidth, 275 View.setOnTouchListener( ) method, 128

virtual devices, creating, 38-39 volume controls, setting, 150 vsync (vertical synchronization), of graphics, 82-83

0 0

Post a comment