Oolite
1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
src
Core
OOFullScreenController.m
Go to the documentation of this file.
1
/*
2
3
OOFullScreenController.m
4
5
6
Oolite
7
Copyright (C) 2004-2013 Giles C Williams and contributors
8
9
This program is free software; you can redistribute it and/or
10
modify it under the terms of the GNU General Public License
11
as published by the Free Software Foundation; either version 2
12
of the License, or (at your option) any later version.
13
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
18
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22
MA 02110-1301, USA.
23
24
*/
25
26
#import "
OOFullScreenController.h
"
27
#import "
OOLogging.h
"
28
29
30
@implementation
OOFullScreenController
31
32
- (id) initWithGameView:(
MyOpenGLView
*)view
33
{
34
if
((
self
= [super init]))
35
{
36
_gameView
= [view retain];
37
}
38
return
self
;
39
}
40
41
42
- (void)
dealloc
43
{
44
DESTROY
(
_gameView
);
45
46
[
super
dealloc];
47
}
48
49
50
- (
MyOpenGLView
*)
gameView
51
{
52
return
_gameView
;
53
}
54
55
56
- (BOOL)
inFullScreenMode
57
{
58
OOLogGenericSubclassResponsibility
();
59
return
NO;
60
}
61
62
63
- (void) setFullScreenMode:(BOOL)value
64
{
65
OOLogGenericSubclassResponsibility
();
66
}
67
68
69
- (NSArray *)
displayModes
70
{
71
OOLogGenericSubclassResponsibility
();
72
return
nil
;
73
}
74
75
76
- (NSDictionary *)
currentDisplayMode
77
{
78
return
[[
self
displayModes] objectAtIndex:[
self
indexOfCurrentDisplayMode]];
79
}
80
81
82
- (NSUInteger)
indexOfCurrentDisplayMode
83
{
84
OOLogGenericSubclassResponsibility
();
85
return
NSNotFound;
86
}
87
88
89
- (BOOL) setDisplayWidth:(NSUInteger)width height:(NSUInteger)height refreshRate:(NSUInteger)refresh
90
{
91
OOLogGenericSubclassResponsibility
();
92
return
NO;
93
}
94
95
96
- (NSDictionary *) findDisplayModeForWidth:(NSUInteger)width height:(NSUInteger)height refreshRate:(NSUInteger)d_refresh
97
{
98
OOLogGenericSubclassResponsibility
();
99
return
nil
;
100
}
101
102
103
- (void) noteMouseInteractionModeChangedFrom:(
OOMouseInteractionMode
)oldMode to:(
OOMouseInteractionMode
)newMode
104
{
105
106
}
107
108
@end
DESTROY
#define DESTROY(x)
Definition
OOCocoa.h:77
OOFullScreenController.h
OOLogging.h
OOLogGenericSubclassResponsibility
#define OOLogGenericSubclassResponsibility()
Definition
OOLogging.h:129
OOMouseInteractionMode
OOMouseInteractionMode
Definition
OOMouseInteractionMode.h:47
nil
return nil
Definition
OOProbabilitySet.m:449
MyOpenGLView
Definition
MyOpenGLView.h:124
OOFullScreenController
Definition
OOFullScreenController.h:56
OOFullScreenController::displayModes
NSArray * displayModes
Definition
OOFullScreenController.h:67
OOFullScreenController::currentDisplayMode
NSDictionary * currentDisplayMode
Definition
OOFullScreenController.h:68
-[OOFullScreenController dealloc]
void dealloc()
Definition
OOFullScreenController.m:42
-[OOFullScreenController inFullScreenMode]
BOOL inFullScreenMode()
Definition
OOFullScreenController.m:56
OOFullScreenController::gameView
MyOpenGLView * gameView
Definition
OOFullScreenController.h:65
OOFullScreenController::indexOfCurrentDisplayMode
NSUInteger indexOfCurrentDisplayMode
Definition
OOFullScreenController.h:69
OOFullScreenController::_gameView
MyOpenGLView * _gameView
Definition
OOFullScreenController.h:58
Generated by
1.12.0