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
Graphics (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="Graphics (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/Graphics.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/Gdx.html" title="class in com.badlogic.gdx"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../com/badlogic/gdx/Graphics.BufferFormat.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/Graphics.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="Graphics.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;<A HREF="#nested_class_summary">NESTED</A>&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 Graphics</H2>
109
<HR>
110
<DL>
111
<DT><PRE>public interface <B>Graphics</B></DL>
112
</PRE>
113
 
114
<P>
115
<p>
116
 This interface encapsulates the communication with the graphics processor. It allows to retrieve <A HREF="../../../com/badlogic/gdx/graphics/GL10.html" title="interface in com.badlogic.gdx.graphics"><CODE>GL10</CODE></A>, <A HREF="../../../com/badlogic/gdx/graphics/GL11.html" title="interface in com.badlogic.gdx.graphics"><CODE>GL11</CODE></A> and
117
 <A HREF="../../../com/badlogic/gdx/graphics/GL20.html" title="interface in com.badlogic.gdx.graphics"><CODE>GL20</CODE></A> instances depending on the available hardware and configuration of the <A HREF="../../../com/badlogic/gdx/Application.html" title="interface in com.badlogic.gdx"><CODE>Application</CODE></A>. Additionally it
118
 features methods to generate <A HREF="../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics"><CODE>Pixmap</CODE></A>s and <A HREF="../../../com/badlogic/gdx/graphics/Texture.html" title="class in com.badlogic.gdx.graphics"><CODE>Texture</CODE></A>s.
119
 </p>
120
 
121
 <p>
122
 <A HREF="../../../com/badlogic/gdx/graphics/Texture.html" title="class in com.badlogic.gdx.graphics"><CODE>Texture</CODE></A>s can be either managed or not managed. Managed and Textures will be restored when the OpenGL context is lost.
123
 An OpenGL ES context loss happens when a user pauses the Application ( <A HREF="../../../com/badlogic/gdx/ApplicationListener.html#pause()"><CODE>ApplicationListener.pause()</CODE></A>) and switches to
124
 another application on Android. On the desktop there is no concept of context loss for OpenGL.
125
 </p>
126
 
127
 <p>
128
 There are many more utility classes that are not directly generated by the <A HREF="../../../com/badlogic/gdx/Graphics.html" title="interface in com.badlogic.gdx"><CODE>Graphics</CODE></A> interfaces. See <A HREF="../../../com/badlogic/gdx/graphics/glutils/VertexArray.html" title="class in com.badlogic.gdx.graphics.glutils"><CODE>VertexArray</CODE></A>, <A HREF="../../../com/badlogic/gdx/graphics/glutils/VertexBufferObject.html" title="class in com.badlogic.gdx.graphics.glutils"><CODE>VertexBufferObject</CODE></A>, <A HREF="../../../com/badlogic/gdx/graphics/glutils/IndexBufferObject.html" title="class in com.badlogic.gdx.graphics.glutils"><CODE>IndexBufferObject</CODE></A>, <A HREF="../../../com/badlogic/gdx/graphics/Mesh.html" title="class in com.badlogic.gdx.graphics"><CODE>Mesh</CODE></A>, <A HREF="../../../com/badlogic/gdx/graphics/glutils/ShaderProgram.html" title="class in com.badlogic.gdx.graphics.glutils"><CODE>ShaderProgram</CODE></A> and <A HREF="../../../com/badlogic/gdx/graphics/glutils/FrameBuffer.html" title="class in com.badlogic.gdx.graphics.glutils"><CODE>FrameBuffer</CODE></A>,
129
 <A HREF="../../../com/badlogic/gdx/graphics/g2d/BitmapFont.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>BitmapFont</CODE></A>, <A HREF="../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>SpriteBatch</CODE></A> and so on. All these classes are managed, meaning they don't need to be reloaded on a
130
 context loss. Explore the com.badlogic.gdx.graphics package for more classes that might come in handy.
131
 </p>
132
 
133
 <p>
134
 All graphical resources, be the generated by the <A HREF="../../../com/badlogic/gdx/Graphics.html" title="interface in com.badlogic.gdx"><CODE>Graphics</CODE></A> interface or via a constructor <b>must</b> be disposed when
135
 no longer used!
136
 </p>
137
<P>
138
 
139
<P>
140
<DL>
141
<DT><B>Author:</B></DT>
142
  <DD>mzechner</DD>
143
</DL>
144
<HR>
145
 
146
<P>
147
<!-- ======== NESTED CLASS SUMMARY ======== -->
148
 
149
<A NAME="nested_class_summary"><!-- --></A>
150
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
151
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
152
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
153
<B>Nested Class Summary</B></FONT></TH>
154
</TR>
155
<TR BGCOLOR="white" CLASS="TableRowColor">
156
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157
<CODE>static&nbsp;class</CODE></FONT></TD>
158
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.BufferFormat.html" title="class in com.badlogic.gdx">Graphics.BufferFormat</A></B></CODE>
159
 
160
<BR>
161
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Class describing the bits per pixel, depth buffer precision, stencil precision and number of MSAA samples.</TD>
162
</TR>
163
<TR BGCOLOR="white" CLASS="TableRowColor">
164
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165
<CODE>static&nbsp;class</CODE></FONT></TD>
166
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.DisplayMode.html" title="class in com.badlogic.gdx">Graphics.DisplayMode</A></B></CODE>
167
 
168
<BR>
169
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Class describing a fullscreen display mode</TD>
170
</TR>
171
<TR BGCOLOR="white" CLASS="TableRowColor">
172
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173
<CODE>static&nbsp;class</CODE></FONT></TD>
174
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.GraphicsType.html" title="enum in com.badlogic.gdx">Graphics.GraphicsType</A></B></CODE>
175
 
176
<BR>
177
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enumeration describing different types of <A HREF="../../../com/badlogic/gdx/Graphics.html" title="interface in com.badlogic.gdx"><CODE>Graphics</CODE></A> implementations.</TD>
178
</TR>
179
</TABLE>
180
&nbsp;
181
<!-- ========== METHOD SUMMARY =========== -->
182
 
183
<A NAME="method_summary"><!-- --></A>
184
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
185
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
186
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
187
<B>Method Summary</B></FONT></TH>
188
</TR>
189
<TR BGCOLOR="white" CLASS="TableRowColor">
190
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
191
<CODE>&nbsp;<A HREF="../../../com/badlogic/gdx/Graphics.BufferFormat.html" title="class in com.badlogic.gdx">Graphics.BufferFormat</A></CODE></FONT></TD>
192
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getBufferFormat()">getBufferFormat</A></B>()</CODE>
193
 
194
<BR>
195
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
196
</TR>
197
<TR BGCOLOR="white" CLASS="TableRowColor">
198
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
199
<CODE>&nbsp;float</CODE></FONT></TD>
200
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getDeltaTime()">getDeltaTime</A></B>()</CODE>
201
 
202
<BR>
203
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
204
</TR>
205
<TR BGCOLOR="white" CLASS="TableRowColor">
206
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
207
<CODE>&nbsp;float</CODE></FONT></TD>
208
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getDensity()">getDensity</A></B>()</CODE>
209
 
210
<BR>
211
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is a scaling factor for the Density Independent Pixel unit, following the same conventions as
212
 android.util.DisplayMetrics#density, where one DIP is one pixel on an approximately 160 dpi screen.</TD>
213
</TR>
214
<TR BGCOLOR="white" CLASS="TableRowColor">
215
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216
<CODE>&nbsp;<A HREF="../../../com/badlogic/gdx/Graphics.DisplayMode.html" title="class in com.badlogic.gdx">Graphics.DisplayMode</A></CODE></FONT></TD>
217
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getDesktopDisplayMode()">getDesktopDisplayMode</A></B>()</CODE>
218
 
219
<BR>
220
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
221
</TR>
222
<TR BGCOLOR="white" CLASS="TableRowColor">
223
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
224
<CODE>&nbsp;<A HREF="../../../com/badlogic/gdx/Graphics.DisplayMode.html" title="class in com.badlogic.gdx">Graphics.DisplayMode</A>[]</CODE></FONT></TD>
225
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getDisplayModes()">getDisplayModes</A></B>()</CODE>
226
 
227
<BR>
228
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
229
</TR>
230
<TR BGCOLOR="white" CLASS="TableRowColor">
231
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
232
<CODE>&nbsp;int</CODE></FONT></TD>
233
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getFramesPerSecond()">getFramesPerSecond</A></B>()</CODE>
234
 
235
<BR>
236
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
237
</TR>
238
<TR BGCOLOR="white" CLASS="TableRowColor">
239
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240
<CODE>&nbsp;<A HREF="../../../com/badlogic/gdx/graphics/GL10.html" title="interface in com.badlogic.gdx.graphics">GL10</A></CODE></FONT></TD>
241
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getGL10()">getGL10</A></B>()</CODE>
242
 
243
<BR>
244
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
245
</TR>
246
<TR BGCOLOR="white" CLASS="TableRowColor">
247
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
248
<CODE>&nbsp;<A HREF="../../../com/badlogic/gdx/graphics/GL11.html" title="interface in com.badlogic.gdx.graphics">GL11</A></CODE></FONT></TD>
249
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getGL11()">getGL11</A></B>()</CODE>
250
 
251
<BR>
252
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
253
</TR>
254
<TR BGCOLOR="white" CLASS="TableRowColor">
255
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
256
<CODE>&nbsp;<A HREF="../../../com/badlogic/gdx/graphics/GL20.html" title="interface in com.badlogic.gdx.graphics">GL20</A></CODE></FONT></TD>
257
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getGL20()">getGL20</A></B>()</CODE>
258
 
259
<BR>
260
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
261
</TR>
262
<TR BGCOLOR="white" CLASS="TableRowColor">
263
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264
<CODE>&nbsp;<A HREF="../../../com/badlogic/gdx/graphics/GLCommon.html" title="interface in com.badlogic.gdx.graphics">GLCommon</A></CODE></FONT></TD>
265
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getGLCommon()">getGLCommon</A></B>()</CODE>
266
 
267
<BR>
268
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
269
</TR>
270
<TR BGCOLOR="white" CLASS="TableRowColor">
271
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272
<CODE>&nbsp;<A HREF="../../../com/badlogic/gdx/graphics/GLU.html" title="interface in com.badlogic.gdx.graphics">GLU</A></CODE></FONT></TD>
273
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getGLU()">getGLU</A></B>()</CODE>
274
 
275
<BR>
276
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
277
</TR>
278
<TR BGCOLOR="white" CLASS="TableRowColor">
279
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
280
<CODE>&nbsp;int</CODE></FONT></TD>
281
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getHeight()">getHeight</A></B>()</CODE>
282
 
283
<BR>
284
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
285
</TR>
286
<TR BGCOLOR="white" CLASS="TableRowColor">
287
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
288
<CODE>&nbsp;float</CODE></FONT></TD>
289
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getPpcX()">getPpcX</A></B>()</CODE>
290
 
291
<BR>
292
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
293
</TR>
294
<TR BGCOLOR="white" CLASS="TableRowColor">
295
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
296
<CODE>&nbsp;float</CODE></FONT></TD>
297
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getPpcY()">getPpcY</A></B>()</CODE>
298
 
299
<BR>
300
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
301
</TR>
302
<TR BGCOLOR="white" CLASS="TableRowColor">
303
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
304
<CODE>&nbsp;float</CODE></FONT></TD>
305
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getPpiX()">getPpiX</A></B>()</CODE>
306
 
307
<BR>
308
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
309
</TR>
310
<TR BGCOLOR="white" CLASS="TableRowColor">
311
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
312
<CODE>&nbsp;float</CODE></FONT></TD>
313
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getPpiY()">getPpiY</A></B>()</CODE>
314
 
315
<BR>
316
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
317
</TR>
318
<TR BGCOLOR="white" CLASS="TableRowColor">
319
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
320
<CODE>&nbsp;float</CODE></FONT></TD>
321
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getRawDeltaTime()">getRawDeltaTime</A></B>()</CODE>
322
 
323
<BR>
324
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
325
</TR>
326
<TR BGCOLOR="white" CLASS="TableRowColor">
327
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
328
<CODE>&nbsp;<A HREF="../../../com/badlogic/gdx/Graphics.GraphicsType.html" title="enum in com.badlogic.gdx">Graphics.GraphicsType</A></CODE></FONT></TD>
329
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getType()">getType</A></B>()</CODE>
330
 
331
<BR>
332
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
333
</TR>
334
<TR BGCOLOR="white" CLASS="TableRowColor">
335
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
336
<CODE>&nbsp;int</CODE></FONT></TD>
337
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#getWidth()">getWidth</A></B>()</CODE>
338
 
339
<BR>
340
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
341
</TR>
342
<TR BGCOLOR="white" CLASS="TableRowColor">
343
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
344
<CODE>&nbsp;boolean</CODE></FONT></TD>
345
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#isContinuousRendering()">isContinuousRendering</A></B>()</CODE>
346
 
347
<BR>
348
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
349
</TR>
350
<TR BGCOLOR="white" CLASS="TableRowColor">
351
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
352
<CODE>&nbsp;boolean</CODE></FONT></TD>
353
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#isFullscreen()">isFullscreen</A></B>()</CODE>
354
 
355
<BR>
356
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whether the app is fullscreen or not</TD>
357
</TR>
358
<TR BGCOLOR="white" CLASS="TableRowColor">
359
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
360
<CODE>&nbsp;boolean</CODE></FONT></TD>
361
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#isGL11Available()">isGL11Available</A></B>()</CODE>
362
 
363
<BR>
364
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether OpenGL ES 1.1 is available.</TD>
365
</TR>
366
<TR BGCOLOR="white" CLASS="TableRowColor">
367
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
368
<CODE>&nbsp;boolean</CODE></FONT></TD>
369
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#isGL20Available()">isGL20Available</A></B>()</CODE>
370
 
371
<BR>
372
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether OpenGL ES 2.0 is available.</TD>
373
</TR>
374
<TR BGCOLOR="white" CLASS="TableRowColor">
375
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
376
<CODE>&nbsp;void</CODE></FONT></TD>
377
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#requestRendering()">requestRendering</A></B>()</CODE>
378
 
379
<BR>
380
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Requests a new frame to be rendered if the rendering mode is non-continuous.</TD>
381
</TR>
382
<TR BGCOLOR="white" CLASS="TableRowColor">
383
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
384
<CODE>&nbsp;void</CODE></FONT></TD>
385
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#setContinuousRendering(boolean)">setContinuousRendering</A></B>(boolean&nbsp;isContinuous)</CODE>
386
 
387
<BR>
388
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets whether to render continuously.</TD>
389
</TR>
390
<TR BGCOLOR="white" CLASS="TableRowColor">
391
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
392
<CODE>&nbsp;boolean</CODE></FONT></TD>
393
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#setDisplayMode(com.badlogic.gdx.Graphics.DisplayMode)">setDisplayMode</A></B>(<A HREF="../../../com/badlogic/gdx/Graphics.DisplayMode.html" title="class in com.badlogic.gdx">Graphics.DisplayMode</A>&nbsp;displayMode)</CODE>
394
 
395
<BR>
396
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current <A HREF="../../../com/badlogic/gdx/Graphics.DisplayMode.html" title="class in com.badlogic.gdx"><CODE>Graphics.DisplayMode</CODE></A>.</TD>
397
</TR>
398
<TR BGCOLOR="white" CLASS="TableRowColor">
399
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
400
<CODE>&nbsp;boolean</CODE></FONT></TD>
401
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#setDisplayMode(int, int, boolean)">setDisplayMode</A></B>(int&nbsp;width,
402
               int&nbsp;height,
403
               boolean&nbsp;fullscreen)</CODE>
404
 
405
<BR>
406
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tries to set the display mode width the given width and height in pixels.</TD>
407
</TR>
408
<TR BGCOLOR="white" CLASS="TableRowColor">
409
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
410
<CODE>&nbsp;void</CODE></FONT></TD>
411
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#setTitle(java.lang.String)">setTitle</A></B>(java.lang.String&nbsp;title)</CODE>
412
 
413
<BR>
414
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the title of the window.</TD>
415
</TR>
416
<TR BGCOLOR="white" CLASS="TableRowColor">
417
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
418
<CODE>&nbsp;void</CODE></FONT></TD>
419
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#setVSync(boolean)">setVSync</A></B>(boolean&nbsp;vsync)</CODE>
420
 
421
<BR>
422
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enable/Disable vsynching.</TD>
423
</TR>
424
<TR BGCOLOR="white" CLASS="TableRowColor">
425
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
426
<CODE>&nbsp;boolean</CODE></FONT></TD>
427
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#supportsDisplayModeChange()">supportsDisplayModeChange</A></B>()</CODE>
428
 
429
<BR>
430
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whether the given backend supports a display mode change via calling <A HREF="../../../com/badlogic/gdx/Graphics.html#setDisplayMode(com.badlogic.gdx.Graphics.DisplayMode)"><CODE>setDisplayMode(DisplayMode)</CODE></A></TD>
431
</TR>
432
<TR BGCOLOR="white" CLASS="TableRowColor">
433
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
434
<CODE>&nbsp;boolean</CODE></FONT></TD>
435
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Graphics.html#supportsExtension(java.lang.String)">supportsExtension</A></B>(java.lang.String&nbsp;extension)</CODE>
436
 
437
<BR>
438
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
439
</TR>
440
</TABLE>
441
&nbsp;
442
<P>
443
 
444
<!-- ============ METHOD DETAIL ========== -->
445
 
446
<A NAME="method_detail"><!-- --></A>
447
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
448
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
449
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
450
<B>Method Detail</B></FONT></TH>
451
</TR>
452
</TABLE>
453
 
454
<A NAME="isGL11Available()"><!-- --></A><H3>
455
isGL11Available</H3>
456
<PRE>
457
boolean <B>isGL11Available</B>()</PRE>
458
<DL>
459
<DD>Returns whether OpenGL ES 1.1 is available. If it is you can get an instance of <A HREF="../../../com/badlogic/gdx/graphics/GL11.html" title="interface in com.badlogic.gdx.graphics"><CODE>GL11</CODE></A> via <A HREF="../../../com/badlogic/gdx/Graphics.html#getGL11()"><CODE>getGL11()</CODE></A> to
460
 access OpenGL ES 1.1 functionality. This also implies that <A HREF="../../../com/badlogic/gdx/Graphics.html#getGL10()"><CODE>getGL10()</CODE></A> will return an instance.
461
<P>
462
<DD><DL>
463
 
464
<DT><B>Returns:</B><DD>whether OpenGL ES 1.1 is available</DL>
465
</DD>
466
</DL>
467
<HR>
468
 
469
<A NAME="isGL20Available()"><!-- --></A><H3>
470
isGL20Available</H3>
471
<PRE>
472
boolean <B>isGL20Available</B>()</PRE>
473
<DL>
474
<DD>Returns whether OpenGL ES 2.0 is available. If it is you can get an instance of <A HREF="../../../com/badlogic/gdx/graphics/GL20.html" title="interface in com.badlogic.gdx.graphics"><CODE>GL20</CODE></A> via <A HREF="../../../com/badlogic/gdx/Graphics.html#getGL20()"><CODE>getGL20()</CODE></A> to
475
 access OpenGL ES 2.0 functionality. Note that this functionality will only be available if you instructed the
476
 <A HREF="../../../com/badlogic/gdx/Application.html" title="interface in com.badlogic.gdx"><CODE>Application</CODE></A> instance to use OpenGL ES 2.0!
477
<P>
478
<DD><DL>
479
 
480
<DT><B>Returns:</B><DD>whether OpenGL ES 2.0 is available</DL>
481
</DD>
482
</DL>
483
<HR>
484
 
485
<A NAME="getGLCommon()"><!-- --></A><H3>
486
getGLCommon</H3>
487
<PRE>
488
<A HREF="../../../com/badlogic/gdx/graphics/GLCommon.html" title="interface in com.badlogic.gdx.graphics">GLCommon</A> <B>getGLCommon</B>()</PRE>
489
<DL>
490
<DD><DL>
491
 
492
<DT><B>Returns:</B><DD>a <A HREF="../../../com/badlogic/gdx/graphics/GLCommon.html" title="interface in com.badlogic.gdx.graphics"><CODE>GLCommon</CODE></A> instance</DL>
493
</DD>
494
</DL>
495
<HR>
496
 
497
<A NAME="getGL10()"><!-- --></A><H3>
498
getGL10</H3>
499
<PRE>
500
<A HREF="../../../com/badlogic/gdx/graphics/GL10.html" title="interface in com.badlogic.gdx.graphics">GL10</A> <B>getGL10</B>()</PRE>
501
<DL>
502
<DD><DL>
503
 
504
<DT><B>Returns:</B><DD>the <A HREF="../../../com/badlogic/gdx/graphics/GL10.html" title="interface in com.badlogic.gdx.graphics"><CODE>GL10</CODE></A> instance or null if not supported</DL>
505
</DD>
506
</DL>
507
<HR>
508
 
509
<A NAME="getGL11()"><!-- --></A><H3>
510
getGL11</H3>
511
<PRE>
512
<A HREF="../../../com/badlogic/gdx/graphics/GL11.html" title="interface in com.badlogic.gdx.graphics">GL11</A> <B>getGL11</B>()</PRE>
513
<DL>
514
<DD><DL>
515
 
516
<DT><B>Returns:</B><DD>the <A HREF="../../../com/badlogic/gdx/graphics/GL11.html" title="interface in com.badlogic.gdx.graphics"><CODE>GL11</CODE></A> instance or null if not supported</DL>
517
</DD>
518
</DL>
519
<HR>
520
 
521
<A NAME="getGL20()"><!-- --></A><H3>
522
getGL20</H3>
523
<PRE>
524
<A HREF="../../../com/badlogic/gdx/graphics/GL20.html" title="interface in com.badlogic.gdx.graphics">GL20</A> <B>getGL20</B>()</PRE>
525
<DL>
526
<DD><DL>
527
 
528
<DT><B>Returns:</B><DD>the <A HREF="../../../com/badlogic/gdx/graphics/GL20.html" title="interface in com.badlogic.gdx.graphics"><CODE>GL20</CODE></A> instance or null if not supported</DL>
529
</DD>
530
</DL>
531
<HR>
532
 
533
<A NAME="getGLU()"><!-- --></A><H3>
534
getGLU</H3>
535
<PRE>
536
<A HREF="../../../com/badlogic/gdx/graphics/GLU.html" title="interface in com.badlogic.gdx.graphics">GLU</A> <B>getGLU</B>()</PRE>
537
<DL>
538
<DD><DL>
539
 
540
<DT><B>Returns:</B><DD>the <A HREF="../../../com/badlogic/gdx/graphics/GLU.html" title="interface in com.badlogic.gdx.graphics"><CODE>GLU</CODE></A> instance</DL>
541
</DD>
542
</DL>
543
<HR>
544
 
545
<A NAME="getWidth()"><!-- --></A><H3>
546
getWidth</H3>
547
<PRE>
548
int <B>getWidth</B>()</PRE>
549
<DL>
550
<DD><DL>
551
 
552
<DT><B>Returns:</B><DD>the width in pixels of the display surface</DL>
553
</DD>
554
</DL>
555
<HR>
556
 
557
<A NAME="getHeight()"><!-- --></A><H3>
558
getHeight</H3>
559
<PRE>
560
int <B>getHeight</B>()</PRE>
561
<DL>
562
<DD><DL>
563
 
564
<DT><B>Returns:</B><DD>the height in pixels of the display surface</DL>
565
</DD>
566
</DL>
567
<HR>
568
 
569
<A NAME="getDeltaTime()"><!-- --></A><H3>
570
getDeltaTime</H3>
571
<PRE>
572
float <B>getDeltaTime</B>()</PRE>
573
<DL>
574
<DD><DL>
575
 
576
<DT><B>Returns:</B><DD>the time span between the current frame and the last frame in seconds. Might be smoothed over n frames.</DL>
577
</DD>
578
</DL>
579
<HR>
580
 
581
<A NAME="getRawDeltaTime()"><!-- --></A><H3>
582
getRawDeltaTime</H3>
583
<PRE>
584
float <B>getRawDeltaTime</B>()</PRE>
585
<DL>
586
<DD><DL>
587
 
588
<DT><B>Returns:</B><DD>the time span between the current frame and the last frame in seconds, without smoothing</DL>
589
</DD>
590
</DL>
591
<HR>
592
 
593
<A NAME="getFramesPerSecond()"><!-- --></A><H3>
594
getFramesPerSecond</H3>
595
<PRE>
596
int <B>getFramesPerSecond</B>()</PRE>
597
<DL>
598
<DD><DL>
599
 
600
<DT><B>Returns:</B><DD>the average number of frames per second</DL>
601
</DD>
602
</DL>
603
<HR>
604
 
605
<A NAME="getType()"><!-- --></A><H3>
606
getType</H3>
607
<PRE>
608
<A HREF="../../../com/badlogic/gdx/Graphics.GraphicsType.html" title="enum in com.badlogic.gdx">Graphics.GraphicsType</A> <B>getType</B>()</PRE>
609
<DL>
610
<DD><DL>
611
 
612
<DT><B>Returns:</B><DD>the <A HREF="../../../com/badlogic/gdx/Graphics.GraphicsType.html" title="enum in com.badlogic.gdx"><CODE>Graphics.GraphicsType</CODE></A> of this Graphics instance</DL>
613
</DD>
614
</DL>
615
<HR>
616
 
617
<A NAME="getPpiX()"><!-- --></A><H3>
618
getPpiX</H3>
619
<PRE>
620
float <B>getPpiX</B>()</PRE>
621
<DL>
622
<DD><DL>
623
 
624
<DT><B>Returns:</B><DD>the pixels per inch on the x-axis</DL>
625
</DD>
626
</DL>
627
<HR>
628
 
629
<A NAME="getPpiY()"><!-- --></A><H3>
630
getPpiY</H3>
631
<PRE>
632
float <B>getPpiY</B>()</PRE>
633
<DL>
634
<DD><DL>
635
 
636
<DT><B>Returns:</B><DD>the pixels per inch on the y-axis</DL>
637
</DD>
638
</DL>
639
<HR>
640
 
641
<A NAME="getPpcX()"><!-- --></A><H3>
642
getPpcX</H3>
643
<PRE>
644
float <B>getPpcX</B>()</PRE>
645
<DL>
646
<DD><DL>
647
 
648
<DT><B>Returns:</B><DD>the pixels per centimeter on the x-axis</DL>
649
</DD>
650
</DL>
651
<HR>
652
 
653
<A NAME="getPpcY()"><!-- --></A><H3>
654
getPpcY</H3>
655
<PRE>
656
float <B>getPpcY</B>()</PRE>
657
<DL>
658
<DD><DL>
659
 
660
<DT><B>Returns:</B><DD>the pixels per centimeter on the y-axis.</DL>
661
</DD>
662
</DL>
663
<HR>
664
 
665
<A NAME="getDensity()"><!-- --></A><H3>
666
getDensity</H3>
667
<PRE>
668
float <B>getDensity</B>()</PRE>
669
<DL>
670
<DD>This is a scaling factor for the Density Independent Pixel unit, following the same conventions as
671
 android.util.DisplayMetrics#density, where one DIP is one pixel on an approximately 160 dpi screen. Thus on a 160dpi screen
672
 this density value will be 1; on a 120 dpi screen it would be .75; etc.
673
<P>
674
<DD><DL>
675
 
676
<DT><B>Returns:</B><DD>the logical density of the Display.</DL>
677
</DD>
678
</DL>
679
<HR>
680
 
681
<A NAME="supportsDisplayModeChange()"><!-- --></A><H3>
682
supportsDisplayModeChange</H3>
683
<PRE>
684
boolean <B>supportsDisplayModeChange</B>()</PRE>
685
<DL>
686
<DD>Whether the given backend supports a display mode change via calling <A HREF="../../../com/badlogic/gdx/Graphics.html#setDisplayMode(com.badlogic.gdx.Graphics.DisplayMode)"><CODE>setDisplayMode(DisplayMode)</CODE></A>
687
<P>
688
<DD><DL>
689
 
690
<DT><B>Returns:</B><DD>whether display mode changes are supported or not.</DL>
691
</DD>
692
</DL>
693
<HR>
694
 
695
<A NAME="getDisplayModes()"><!-- --></A><H3>
696
getDisplayModes</H3>
697
<PRE>
698
<A HREF="../../../com/badlogic/gdx/Graphics.DisplayMode.html" title="class in com.badlogic.gdx">Graphics.DisplayMode</A>[] <B>getDisplayModes</B>()</PRE>
699
<DL>
700
<DD><DL>
701
 
702
<DT><B>Returns:</B><DD>the supported fullscreen <A HREF="../../../com/badlogic/gdx/Graphics.DisplayMode.html" title="class in com.badlogic.gdx"><CODE>Graphics.DisplayMode</CODE></A>.</DL>
703
</DD>
704
</DL>
705
<HR>
706
 
707
<A NAME="getDesktopDisplayMode()"><!-- --></A><H3>
708
getDesktopDisplayMode</H3>
709
<PRE>
710
<A HREF="../../../com/badlogic/gdx/Graphics.DisplayMode.html" title="class in com.badlogic.gdx">Graphics.DisplayMode</A> <B>getDesktopDisplayMode</B>()</PRE>
711
<DL>
712
<DD><DL>
713
 
714
<DT><B>Returns:</B><DD>the display mode of the primary graphics adapter.</DL>
715
</DD>
716
</DL>
717
<HR>
718
 
719
<A NAME="setDisplayMode(com.badlogic.gdx.Graphics.DisplayMode)"><!-- --></A><H3>
720
setDisplayMode</H3>
721
<PRE>
722
boolean <B>setDisplayMode</B>(<A HREF="../../../com/badlogic/gdx/Graphics.DisplayMode.html" title="class in com.badlogic.gdx">Graphics.DisplayMode</A>&nbsp;displayMode)</PRE>
723
<DL>
724
<DD>Sets the current <A HREF="../../../com/badlogic/gdx/Graphics.DisplayMode.html" title="class in com.badlogic.gdx"><CODE>Graphics.DisplayMode</CODE></A>. Returns false in case the operation failed. Not all backends support this methods. See
725
 <A HREF="../../../com/badlogic/gdx/Graphics.html#supportsDisplayModeChange()"><CODE>supportsDisplayModeChange()</CODE></A>.
726
<P>
727
<DD><DL>
728
<DT><B>Parameters:</B><DD><CODE>displayMode</CODE> - the display mode.
729
<DT><B>Returns:</B><DD>whether the operation succeeded.</DL>
730
</DD>
731
</DL>
732
<HR>
733
 
734
<A NAME="setDisplayMode(int, int, boolean)"><!-- --></A><H3>
735
setDisplayMode</H3>
736
<PRE>
737
boolean <B>setDisplayMode</B>(int&nbsp;width,
738
                       int&nbsp;height,
739
                       boolean&nbsp;fullscreen)</PRE>
740
<DL>
741
<DD>Tries to set the display mode width the given width and height in pixels. Will always succeed if fullscreen is set to false,
742
 in which case the application will be run in windowed mode. Use <A HREF="../../../com/badlogic/gdx/Graphics.html#getDisplayModes()"><CODE>getDisplayModes()</CODE></A> to get a list of
743
 supported fullscreen modes.
744
<P>
745
<DD><DL>
746
<DT><B>Parameters:</B><DD><CODE>width</CODE> - the width in pixels<DD><CODE>height</CODE> - the height in pixels<DD><CODE>fullscreen</CODE> - whether to use fullscreen rendering or not</DL>
747
</DD>
748
</DL>
749
<HR>
750
 
751
<A NAME="setTitle(java.lang.String)"><!-- --></A><H3>
752
setTitle</H3>
753
<PRE>
754
void <B>setTitle</B>(java.lang.String&nbsp;title)</PRE>
755
<DL>
756
<DD>Sets the title of the window. Ignored on Android.
757
<P>
758
<DD><DL>
759
<DT><B>Parameters:</B><DD><CODE>title</CODE> - the title.</DL>
760
</DD>
761
</DL>
762
<HR>
763
 
764
<A NAME="setVSync(boolean)"><!-- --></A><H3>
765
setVSync</H3>
766
<PRE>
767
void <B>setVSync</B>(boolean&nbsp;vsync)</PRE>
768
<DL>
769
<DD>Enable/Disable vsynching. This is a best-effort attempt which might not work on all platforms.
770
<P>
771
<DD><DL>
772
<DT><B>Parameters:</B><DD><CODE>vsync</CODE> - vsync enabled or not.</DL>
773
</DD>
774
</DL>
775
<HR>
776
 
777
<A NAME="getBufferFormat()"><!-- --></A><H3>
778
getBufferFormat</H3>
779
<PRE>
780
<A HREF="../../../com/badlogic/gdx/Graphics.BufferFormat.html" title="class in com.badlogic.gdx">Graphics.BufferFormat</A> <B>getBufferFormat</B>()</PRE>
781
<DL>
782
<DD><DL>
783
 
784
<DT><B>Returns:</B><DD>the format of the color, depth and stencil buffer in a <A HREF="../../../com/badlogic/gdx/Graphics.BufferFormat.html" title="class in com.badlogic.gdx"><CODE>Graphics.BufferFormat</CODE></A> instance</DL>
785
</DD>
786
</DL>
787
<HR>
788
 
789
<A NAME="supportsExtension(java.lang.String)"><!-- --></A><H3>
790
supportsExtension</H3>
791
<PRE>
792
boolean <B>supportsExtension</B>(java.lang.String&nbsp;extension)</PRE>
793
<DL>
794
<DD><DL>
795
<DT><B>Parameters:</B><DD><CODE>extension</CODE> - the extension name
796
<DT><B>Returns:</B><DD>whether the extension is supported</DL>
797
</DD>
798
</DL>
799
<HR>
800
 
801
<A NAME="setContinuousRendering(boolean)"><!-- --></A><H3>
802
setContinuousRendering</H3>
803
<PRE>
804
void <B>setContinuousRendering</B>(boolean&nbsp;isContinuous)</PRE>
805
<DL>
806
<DD>Sets whether to render continuously. In case rendering is performed non-continuously, the following events will trigger a
807
 redraw:
808
 
809
 <ul>
810
 <li>A call to <A HREF="../../../com/badlogic/gdx/Graphics.html#requestRendering()"><CODE>requestRendering()</CODE></A></li>
811
 <li>Input events from the touch screen/mouse or keyboard</li>
812
 <li>A <CODE>Runnable</CODE> is posted to the rendering thread via <A HREF="../../../com/badlogic/gdx/Application.html#postRunnable(java.lang.Runnable)"><CODE>Application.postRunnable(Runnable)</CODE></A></li>
813
 </ul>
814
 
815
 Life-cycle events will also be reported as usual, see <A HREF="../../../com/badlogic/gdx/ApplicationListener.html" title="interface in com.badlogic.gdx"><CODE>ApplicationListener</CODE></A>. This method can be called from any
816
 thread.
817
<P>
818
<DD><DL>
819
<DT><B>Parameters:</B><DD><CODE>isContinuous</CODE> - whether the rendering should be continuous or not.</DL>
820
</DD>
821
</DL>
822
<HR>
823
 
824
<A NAME="isContinuousRendering()"><!-- --></A><H3>
825
isContinuousRendering</H3>
826
<PRE>
827
boolean <B>isContinuousRendering</B>()</PRE>
828
<DL>
829
<DD><DL>
830
 
831
<DT><B>Returns:</B><DD>whether rendering is continuous.</DL>
832
</DD>
833
</DL>
834
<HR>
835
 
836
<A NAME="requestRendering()"><!-- --></A><H3>
837
requestRendering</H3>
838
<PRE>
839
void <B>requestRendering</B>()</PRE>
840
<DL>
841
<DD>Requests a new frame to be rendered if the rendering mode is non-continuous. This method can be called from any thread.
842
<P>
843
<DD><DL>
844
</DL>
845
</DD>
846
</DL>
847
<HR>
848
 
849
<A NAME="isFullscreen()"><!-- --></A><H3>
850
isFullscreen</H3>
851
<PRE>
852
boolean <B>isFullscreen</B>()</PRE>
853
<DL>
854
<DD>Whether the app is fullscreen or not
855
<P>
856
<DD><DL>
857
</DL>
858
</DD>
859
</DL>
860
<!-- ========= END OF CLASS DATA ========= -->
861
<HR>
862
 
863
 
864
<!-- ======= START OF BOTTOM NAVBAR ====== -->
865
<A NAME="navbar_bottom"><!-- --></A>
866
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
867
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
868
<TR>
869
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
870
<A NAME="navbar_bottom_firstrow"><!-- --></A>
871
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
872
  <TR ALIGN="center" VALIGN="top">
873
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
874
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
875
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
876
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Graphics.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
877
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
878
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
879
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
880
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
881
  </TR>
882
</TABLE>
883
</TD>
884
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
885
libgdx API</EM>
886
</TD>
887
</TR>
888
 
889
<TR>
890
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
891
&nbsp;<A HREF="../../../com/badlogic/gdx/Gdx.html" title="class in com.badlogic.gdx"><B>PREV CLASS</B></A>&nbsp;
892
&nbsp;<A HREF="../../../com/badlogic/gdx/Graphics.BufferFormat.html" title="class in com.badlogic.gdx"><B>NEXT CLASS</B></A></FONT></TD>
893
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
894
  <A HREF="../../../index.html?com/badlogic/gdx/Graphics.html" target="_top"><B>FRAMES</B></A>  &nbsp;
895
&nbsp;<A HREF="Graphics.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
896
&nbsp;<SCRIPT type="text/javascript">
897
  <!--
898
  if(window==top) {
899
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
900
  }
901
  //-->
902
</SCRIPT>
903
<NOSCRIPT>
904
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
905
</NOSCRIPT>
906
 
907
 
908
</FONT></TD>
909
</TR>
910
<TR>
911
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
912
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
913
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
914
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
915
</TR>
916
</TABLE>
917
<A NAME="skip-navbar_bottom"></A>
918
<!-- ======== END OF BOTTOM NAVBAR ======= -->
919
 
920
<HR>
921
 
922
                                <div style="font-size:9pt"><i>
923
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
924
                                </i></div>
925
 
926
</BODY>
927
</HTML>