83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
[OGKBitmap clearToColor: OGK_COLOR_BLACK];
[bitmap drawAtPosition: position];
[display update];
}
- (void)applicationDidFinishLaunching
{
display = [[OGKDisplay alloc] initWithSize: of_dimension(640, 480)
position: of_point(200, 200)
fullscreen: NO
resizable: NO];
display.size = of_dimension(800, 600);
display.windowPosition = of_point(100, 100);
display.windowTitle = @"ObjGameKit test";
of_log(@"Display is %.fx%.f at (%.f, %.f)",
display.size.width, display.size.height,
display.windowPosition.x, display.windowPosition.y);
|
>
>
|
<
|
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
[OGKBitmap clearToColor: OGK_COLOR_BLACK];
[bitmap drawAtPosition: position];
[display update];
}
- (void)applicationDidFinishLaunching
{
ogk_display_flags_t flags = OGK_DISPLAY_FLAGS_RESIZABLE;
display = [[OGKDisplay alloc] initWithSize: of_dimension(640, 480)
position: of_point(200, 200)
flags: flags];
display.size = of_dimension(800, 600);
display.windowPosition = of_point(100, 100);
display.windowTitle = @"ObjGameKit test";
of_log(@"Display is %.fx%.f at (%.f, %.f)",
display.size.width, display.size.height,
display.windowPosition.x, display.windowPosition.y);
|