Oolite
Loading...
Searching...
No Matches
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
@implementation
OOFullScreenController
30
31
- (id)initWithGameView:(
MyOpenGLView
*)view
32
{
33
if
((
self
= [super init])) {
34
_gameView
= [
view
retain];
35
}
36
return
self
;
37
}
38
39
- (void)
dealloc
40
{
41
DESTROY
(
_gameView
);
42
43
[
super
dealloc];
44
}
45
46
- (
MyOpenGLView
*)
gameView
47
{
48
return
_gameView
;
49
}
50
51
- (BOOL)
inFullScreenMode
52
{
53
OOLogGenericSubclassResponsibility
();
54
return
NO;
55
}
56
57
- (void)setFullScreenMode:(BOOL)value
58
{
59
OOLogGenericSubclassResponsibility
();
60
}
61
62
- (NSArray*)
displayModes
63
{
64
OOLogGenericSubclassResponsibility
();
65
return
nil
;
66
}
67
68
- (NSDictionary*)
currentDisplayMode
69
{
70
return
[[
self
displayModes
] objectAtIndex:[
self
indexOfCurrentDisplayMode
]];
71
}
72
73
- (NSUInteger)
indexOfCurrentDisplayMode
74
{
75
OOLogGenericSubclassResponsibility
();
76
return
NSNotFound;
77
}
78
79
- (BOOL)setDisplayWidth:(NSUInteger)width height:(NSUInteger)height refreshRate:(NSUInteger)refresh
80
{
81
OOLogGenericSubclassResponsibility
();
82
return
NO;
83
}
84
85
- (NSDictionary*)findDisplayModeForWidth:(NSUInteger)width height:(NSUInteger)height refreshRate:(NSUInteger)d_refresh
86
{
87
OOLogGenericSubclassResponsibility
();
88
return
nil
;
89
}
90
91
- (void)noteMouseInteractionModeChangedFrom:(
OOMouseInteractionMode
)oldMode to:(
OOMouseInteractionMode
)newMode
92
{
93
}
94
95
@end
DESTROY
#define DESTROY(x)
Definition
OOFoundation.h:62
OOFullScreenController.h
OOLogging.h
OOLogGenericSubclassResponsibility
#define OOLogGenericSubclassResponsibility()
Definition
OOLogging.h:141
OOMouseInteractionMode
OOMouseInteractionMode
Definition
OOMouseInteractionMode.h:45
nil
return nil
Definition
OOProbabilitySet.m:393
MyOpenGLView
Definition
MyOpenGLView.h:164
OOFullScreenController
Definition
OOFullScreenController.h:52
OOFullScreenController::displayModes
NSArray * displayModes
Definition
OOFullScreenController.m:62
OOFullScreenController::currentDisplayMode
NSDictionary * currentDisplayMode
Definition
OOFullScreenController.m:68
-[OOFullScreenController dealloc]
void dealloc()
Definition
OOFullScreenController.m:39
-[OOFullScreenController inFullScreenMode]
BOOL inFullScreenMode()
Definition
OOFullScreenController.m:51
OOFullScreenController::gameView
MyOpenGLView * gameView
Definition
OOFullScreenController.m:46
OOFullScreenController::indexOfCurrentDisplayMode
NSUInteger indexOfCurrentDisplayMode
Definition
OOFullScreenController.m:73
OOFullScreenController::_gameView
MyOpenGLView * _gameView
Definition
OOFullScreenController.h:54
src
Core
OOFullScreenController.m
Generated by
1.15.0