T

tail.png, 231

targetSdkVersion attribute, 113

targetVertices, 398

testing, 625-626

texel colors, 322

text handling with bitmap fonts, 437-439 rendering, 174-177

alignment and boundaries, 175 fonts, 174-175 test activity, 175-177 texture atlases, 405-410, 441-442

Texture class, 313-315, 322, 351, 407,

425, 445, 455, 489 Texture instances, 323, 510 texture mapping, 304-315 code snippet, 310 coordinates, 304-306 deleting textures, 309 enabling texturing, 310 example code, 310-313 filtering, 308-309 Texture class, 313-315 uploading bitmaps, 306-307 Texture matrix, 276, 511 texture regions, TextureRegion class,

411-412 TextureAtlasScreen, 407 TextureAtlasTest, 407, 419 TextureAtlasTest.java file, 407 Texture.bind( ) method, 508 TexturedTriangleScreen class, 310 TextureRegion array, 424 TextureRegion class, 411-412, 416, 418, 422, 426, 445, 455-456, 485

TextureRegion instance, 558-559 TextureRegions, 418, 423-424, 442,

446, 449 texture.reload( ) method, 342 textures. See also texture mapping deleting, 309 enabling, 310 reducing size, 343-344 TextView.setOnKeyListener( ) method, 139

TextView.setOnTouchListener( )

method, 129 tHeight variable, 376-377 (this) activity, 45 Thread.join( ) method, 181 Threads view, 48 Thread.sleep(16) method, 131 time-based movement, 255-256 tmpBuffer array, 421 TO_DEGREES constant, 358, 360 toolbar buttons, 30 tools directory, 27

TO_RADIANS constant, 358 Touch down events, 72 Touch drag events, 72 Touch event flood, 131 touch handlers, 200-207

MultiTouchHandler class, 204-207 SingleTouchHandler class, 201-204 TouchHandler interface, 201 Touch up events, 72, 596 TouchEvent class, 73-75, 196, 201, 205 TouchEvent code, 74 TouchEvent instances, 196 TouchEvent.pointer, 206 TouchEvents, 194, 201-203, 239-240,

262, 363, 453 TouchEvent.TOUCH_DOWN events, 239

TouchEvent.TOUCH_UP events, 239 TouchHandler interface, 201-202, 205,

207-208 touchPoint member, 363 touchPoint vector, 363 TouchTest class, 160 touchToWorld( ) method, 403 tower-defense games, 59 transformations, matrices and, 511-524 matrix stack, 512-514 simple camera system, 520-524 transitions

Droid Invaders game, 580 and game design, 64-70 Super Jumper game, 431-432 translation, example using, 329-333 Bob class, 329-330 code for, 331-333 Triangle fan, 326

Triangle mesh bounding type, 373 Triangle strip, 326 triangles, specifying, 292-296 overview, 292-294 sending vertices to OpenGL ES, 294-296 trigonometry, 355-357 turnLeft( ) method, 254 turnRight( ) method, 254 tWidth variable, 376

tWidthm variable, 377 Typeface class, 174, 177

0 0

Post a comment