27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
return;
if (!al_install_system(ALLEGRO_VERSION_INT, NULL))
@throw [OFInitializationFailedException
exceptionWithClass: self];
}
+ displayWithSize: (of_dimension_t)size
fullscreen: (BOOL)fullscreen
resizable: (BOOL)resizable
{
return [[self alloc] initWithSize: size
fullscreen: fullscreen
resizable: resizable];
}
- initWithSize: (of_dimension_t)size
fullscreen: (BOOL)fullscreen
resizable: (BOOL)resizable
{
int flags = 0;
self = [super init];
|
<
<
<
<
<
<
<
<
<
|
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
return;
if (!al_install_system(ALLEGRO_VERSION_INT, NULL))
@throw [OFInitializationFailedException
exceptionWithClass: self];
}
- initWithSize: (of_dimension_t)size
fullscreen: (BOOL)fullscreen
resizable: (BOOL)resizable
{
int flags = 0;
self = [super init];
|
70
71
72
73
74
75
76
77
78
79
80
81
82
|
}
- (void)dealloc
{
if (display != NULL)
al_destroy_display(display);
}
- (ALLEGRO_DISPLAY*)OGK_allegroDisplay
{
return display;
}
@end
|
>
>
>
>
>
|
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
}
- (void)dealloc
{
if (display != NULL)
al_destroy_display(display);
}
- (void)update
{
al_flip_display();
}
- (ALLEGRO_DISPLAY*)OGK_allegroDisplay
{
return display;
}
@end
|