Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
356 chris 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 27 20:37:04 CET 2013 -->
6
<TITLE>
7
Screen (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2013-01-27">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="Screen (libgdx API)";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35
<TR>
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
  <TR ALIGN="center" VALIGN="top">
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Screen.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48
  </TR>
49
</TABLE>
50
</TD>
51
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52
 
53
                                libgdx API
54
                                <style>
55
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
56
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
57
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
58
                                .TableHeadingColor { background:#EEEEFF; }
59
                                a { text-decoration:none }
60
                                a:hover { text-decoration:underline }
61
                                a:link, a:visited { color:blue }
62
                                table { border:0px }
63
                                .TableRowColor td:first-child { border-left:1px solid black }
64
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
65
                                hr { border:0px; border-bottom:1px solid #333366; }
66
                                </style>
67
                        </EM>
68
</TD>
69
</TR>
70
 
71
<TR>
72
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
73
&nbsp;<A HREF="../../../com/badlogic/gdx/Preferences.html" title="interface in com.badlogic.gdx"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../com/badlogic/gdx/StreamUtils.html" title="class in com.badlogic.gdx"><B>NEXT CLASS</B></A></FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../index.html?com/badlogic/gdx/Screen.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="Screen.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
78
&nbsp;<SCRIPT type="text/javascript">
79
  <!--
80
  if(window==top) {
81
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
82
  }
83
  //-->
84
</SCRIPT>
85
<NOSCRIPT>
86
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
87
</NOSCRIPT>
88
 
89
 
90
</FONT></TD>
91
</TR>
92
<TR>
93
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
94
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
95
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
96
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
97
</TR>
98
</TABLE>
99
<A NAME="skip-navbar_top"></A>
100
<!-- ========= END OF TOP NAVBAR ========= -->
101
 
102
<HR>
103
<!-- ======== START OF CLASS DATA ======== -->
104
<H2>
105
<FONT SIZE="-1">
106
com.badlogic.gdx</FONT>
107
<BR>
108
Interface Screen</H2>
109
<HR>
110
<DL>
111
<DT><PRE>public interface <B>Screen</B></DL>
112
</PRE>
113
 
114
<P>
115
<p>
116
 Represents one of many application screens, such as a main menu, a settings menu, the game screen and so on.
117
 </p>
118
 <p>
119
 Note that <A HREF="../../../com/badlogic/gdx/Screen.html#dispose()"><CODE>dispose()</CODE></A> is not called automatically.
120
 </p>
121
<P>
122
 
123
<P>
124
<DL>
125
<DT><B>See Also:</B><DD><A HREF="../../../com/badlogic/gdx/Game.html" title="class in com.badlogic.gdx"><CODE>Game</CODE></A></DL>
126
<HR>
127
 
128
<P>
129
 
130
<!-- ========== METHOD SUMMARY =========== -->
131
 
132
<A NAME="method_summary"><!-- --></A>
133
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
134
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
135
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
136
<B>Method Summary</B></FONT></TH>
137
</TR>
138
<TR BGCOLOR="white" CLASS="TableRowColor">
139
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
140
<CODE>&nbsp;void</CODE></FONT></TD>
141
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Screen.html#dispose()">dispose</A></B>()</CODE>
142
 
143
<BR>
144
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when this screen should release all resources.</TD>
145
</TR>
146
<TR BGCOLOR="white" CLASS="TableRowColor">
147
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148
<CODE>&nbsp;void</CODE></FONT></TD>
149
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Screen.html#hide()">hide</A></B>()</CODE>
150
 
151
<BR>
152
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when this screen is no longer the current screen for a <A HREF="../../../com/badlogic/gdx/Game.html" title="class in com.badlogic.gdx"><CODE>Game</CODE></A>.</TD>
153
</TR>
154
<TR BGCOLOR="white" CLASS="TableRowColor">
155
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156
<CODE>&nbsp;void</CODE></FONT></TD>
157
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Screen.html#pause()">pause</A></B>()</CODE>
158
 
159
<BR>
160
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
161
</TR>
162
<TR BGCOLOR="white" CLASS="TableRowColor">
163
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164
<CODE>&nbsp;void</CODE></FONT></TD>
165
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Screen.html#render(float)">render</A></B>(float&nbsp;delta)</CODE>
166
 
167
<BR>
168
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when the screen should render itself.</TD>
169
</TR>
170
<TR BGCOLOR="white" CLASS="TableRowColor">
171
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172
<CODE>&nbsp;void</CODE></FONT></TD>
173
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Screen.html#resize(int, int)">resize</A></B>(int&nbsp;width,
174
       int&nbsp;height)</CODE>
175
 
176
<BR>
177
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
178
</TR>
179
<TR BGCOLOR="white" CLASS="TableRowColor">
180
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181
<CODE>&nbsp;void</CODE></FONT></TD>
182
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Screen.html#resume()">resume</A></B>()</CODE>
183
 
184
<BR>
185
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
186
</TR>
187
<TR BGCOLOR="white" CLASS="TableRowColor">
188
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189
<CODE>&nbsp;void</CODE></FONT></TD>
190
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Screen.html#show()">show</A></B>()</CODE>
191
 
192
<BR>
193
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when this screen becomes the current screen for a <A HREF="../../../com/badlogic/gdx/Game.html" title="class in com.badlogic.gdx"><CODE>Game</CODE></A>.</TD>
194
</TR>
195
</TABLE>
196
&nbsp;
197
<P>
198
 
199
<!-- ============ METHOD DETAIL ========== -->
200
 
201
<A NAME="method_detail"><!-- --></A>
202
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
203
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
204
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
205
<B>Method Detail</B></FONT></TH>
206
</TR>
207
</TABLE>
208
 
209
<A NAME="render(float)"><!-- --></A><H3>
210
render</H3>
211
<PRE>
212
void <B>render</B>(float&nbsp;delta)</PRE>
213
<DL>
214
<DD>Called when the screen should render itself.
215
<P>
216
<DD><DL>
217
<DT><B>Parameters:</B><DD><CODE>delta</CODE> - The time in seconds since the last render.</DL>
218
</DD>
219
</DL>
220
<HR>
221
 
222
<A NAME="resize(int, int)"><!-- --></A><H3>
223
resize</H3>
224
<PRE>
225
void <B>resize</B>(int&nbsp;width,
226
            int&nbsp;height)</PRE>
227
<DL>
228
<DD><DL>
229
<DT><B>See Also:</B><DD><A HREF="../../../com/badlogic/gdx/ApplicationListener.html#resize(int, int)"><CODE>ApplicationListener.resize(int, int)</CODE></A></DL>
230
</DD>
231
</DL>
232
<HR>
233
 
234
<A NAME="show()"><!-- --></A><H3>
235
show</H3>
236
<PRE>
237
void <B>show</B>()</PRE>
238
<DL>
239
<DD>Called when this screen becomes the current screen for a <A HREF="../../../com/badlogic/gdx/Game.html" title="class in com.badlogic.gdx"><CODE>Game</CODE></A>.
240
<P>
241
<DD><DL>
242
</DL>
243
</DD>
244
</DL>
245
<HR>
246
 
247
<A NAME="hide()"><!-- --></A><H3>
248
hide</H3>
249
<PRE>
250
void <B>hide</B>()</PRE>
251
<DL>
252
<DD>Called when this screen is no longer the current screen for a <A HREF="../../../com/badlogic/gdx/Game.html" title="class in com.badlogic.gdx"><CODE>Game</CODE></A>.
253
<P>
254
<DD><DL>
255
</DL>
256
</DD>
257
</DL>
258
<HR>
259
 
260
<A NAME="pause()"><!-- --></A><H3>
261
pause</H3>
262
<PRE>
263
void <B>pause</B>()</PRE>
264
<DL>
265
<DD><DL>
266
<DT><B>See Also:</B><DD><A HREF="../../../com/badlogic/gdx/ApplicationListener.html#pause()"><CODE>ApplicationListener.pause()</CODE></A></DL>
267
</DD>
268
</DL>
269
<HR>
270
 
271
<A NAME="resume()"><!-- --></A><H3>
272
resume</H3>
273
<PRE>
274
void <B>resume</B>()</PRE>
275
<DL>
276
<DD><DL>
277
<DT><B>See Also:</B><DD><A HREF="../../../com/badlogic/gdx/ApplicationListener.html#resume()"><CODE>ApplicationListener.resume()</CODE></A></DL>
278
</DD>
279
</DL>
280
<HR>
281
 
282
<A NAME="dispose()"><!-- --></A><H3>
283
dispose</H3>
284
<PRE>
285
void <B>dispose</B>()</PRE>
286
<DL>
287
<DD>Called when this screen should release all resources.
288
<P>
289
<DD><DL>
290
</DL>
291
</DD>
292
</DL>
293
<!-- ========= END OF CLASS DATA ========= -->
294
<HR>
295
 
296
 
297
<!-- ======= START OF BOTTOM NAVBAR ====== -->
298
<A NAME="navbar_bottom"><!-- --></A>
299
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
300
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
301
<TR>
302
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
303
<A NAME="navbar_bottom_firstrow"><!-- --></A>
304
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
305
  <TR ALIGN="center" VALIGN="top">
306
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
307
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
308
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
309
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Screen.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
310
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
311
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
312
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
313
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
314
  </TR>
315
</TABLE>
316
</TD>
317
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
318
libgdx API</EM>
319
</TD>
320
</TR>
321
 
322
<TR>
323
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
324
&nbsp;<A HREF="../../../com/badlogic/gdx/Preferences.html" title="interface in com.badlogic.gdx"><B>PREV CLASS</B></A>&nbsp;
325
&nbsp;<A HREF="../../../com/badlogic/gdx/StreamUtils.html" title="class in com.badlogic.gdx"><B>NEXT CLASS</B></A></FONT></TD>
326
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
327
  <A HREF="../../../index.html?com/badlogic/gdx/Screen.html" target="_top"><B>FRAMES</B></A>  &nbsp;
328
&nbsp;<A HREF="Screen.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
329
&nbsp;<SCRIPT type="text/javascript">
330
  <!--
331
  if(window==top) {
332
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
333
  }
334
  //-->
335
</SCRIPT>
336
<NOSCRIPT>
337
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
338
</NOSCRIPT>
339
 
340
 
341
</FONT></TD>
342
</TR>
343
<TR>
344
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
345
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
346
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
347
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
348
</TR>
349
</TABLE>
350
<A NAME="skip-navbar_bottom"></A>
351
<!-- ======== END OF BOTTOM NAVBAR ======= -->
352
 
353
<HR>
354
 
355
                                <div style="font-size:9pt"><i>
356
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
357
                                </i></div>
358
 
359
</BODY>
360
</HTML>