Differences From Artifact [a1fc7a3a43]:
- File tests/TestMain.m — part of check-in [d5c8cc4029] at 2012-08-28 20:10:57 on branch trunk — Add a test animation. (user: js, size: 5226) [annotate] [blame] [check-ins using]
To Artifact [ff2ce8d9d5]:
- File
tests/TestMain.m
— part of check-in
[c977e39bbe]
at
2012-09-09 13:18:07
on branch trunk
— Adjust to ObjFW change.
Applications don't terminate after applicationDidFinishLaunching
anymore. (user: js, size: 5231) [annotate] [blame] [check-ins using]
︙ | |||
32 33 34 35 36 37 38 | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | - + | OF_APPLICATION_DELEGATE(TestMain) @implementation TestMain - (void)display: (OGKDisplay*)display wasClosed: (OGKCloseEvent*)event { |
︙ | |||
76 77 78 79 80 81 82 | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | - + | case OGK_KEY_RIGHT: rotation.angle += M_PI / 128; break; case OGK_KEY_A: [self toggleAnimation]; break; case OGK_KEY_Q: |
︙ | |||
187 188 189 190 191 192 193 | 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | - + | bitmap = [[OGKBitmap alloc] initWithFile: @"test.bmp"]; position = of_point(display.size.width / 2, display.size.height / 2); scale = of_dimension(1, 1); rotation = ogk_rotation(bitmap.size.width / 2, bitmap.size.height / 2, 0); tint = ogk_color(1, 1, 1, 0); |