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:09 CET 2013 -->
6
<TITLE>
7
OrthographicCamera (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="OrthographicCamera (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/OrthographicCamera.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/graphics/Mesh.VertexDataType.html" title="enum in com.badlogic.gdx.graphics"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/PerspectiveCamera.html" title="class in com.badlogic.gdx.graphics"><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/OrthographicCamera.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="OrthographicCamera.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;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
95
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
96
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&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.graphics</FONT>
107
<BR>
108
Class OrthographicCamera</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/badlogic/gdx/graphics/Camera.html" title="class in com.badlogic.gdx.graphics">com.badlogic.gdx.graphics.Camera</A>
112
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.graphics.OrthographicCamera</B>
113
</PRE>
114
<HR>
115
<DL>
116
<DT><PRE>public class <B>OrthographicCamera</B><DT>extends <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html" title="class in com.badlogic.gdx.graphics">Camera</A></DL>
117
</PRE>
118
 
119
<P>
120
A camera with orthographic projection.
121
<P>
122
 
123
<P>
124
<DL>
125
<DT><B>Author:</B></DT>
126
  <DD>mzechner</DD>
127
</DL>
128
<HR>
129
 
130
<P>
131
<!-- =========== FIELD SUMMARY =========== -->
132
 
133
<A NAME="field_summary"><!-- --></A>
134
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
135
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
136
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
137
<B>Field Summary</B></FONT></TH>
138
</TR>
139
<TR BGCOLOR="white" CLASS="TableRowColor">
140
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141
<CODE>&nbsp;float</CODE></FONT></TD>
142
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#zoom">zoom</A></B></CODE>
143
 
144
<BR>
145
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the zoom of the camera</TD>
146
</TR>
147
</TABLE>
148
&nbsp;<A NAME="fields_inherited_from_class_com.badlogic.gdx.graphics.Camera"><!-- --></A>
149
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
150
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
151
<TH ALIGN="left"><B>Fields inherited from class com.badlogic.gdx.graphics.<A HREF="../../../../com/badlogic/gdx/graphics/Camera.html" title="class in com.badlogic.gdx.graphics">Camera</A></B></TH>
152
</TR>
153
<TR BGCOLOR="white" CLASS="TableRowColor">
154
<TD><CODE><A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#combined">combined</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#direction">direction</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#far">far</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#frustum">frustum</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#invProjectionView">invProjectionView</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#near">near</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#position">position</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#projection">projection</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#up">up</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#view">view</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#viewportHeight">viewportHeight</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#viewportWidth">viewportWidth</A></CODE></TD>
155
</TR>
156
</TABLE>
157
&nbsp;
158
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
159
 
160
<A NAME="constructor_summary"><!-- --></A>
161
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
162
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
163
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
164
<B>Constructor Summary</B></FONT></TH>
165
</TR>
166
<TR BGCOLOR="white" CLASS="TableRowColor">
167
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#OrthographicCamera()">OrthographicCamera</A></B>()</CODE>
168
 
169
<BR>
170
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
171
</TR>
172
<TR BGCOLOR="white" CLASS="TableRowColor">
173
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#OrthographicCamera(float, float)">OrthographicCamera</A></B>(float&nbsp;viewportWidth,
174
                   float&nbsp;viewportHeight)</CODE>
175
 
176
<BR>
177
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new OrthographicCamera, using the given viewport width and height.</TD>
178
</TR>
179
<TR BGCOLOR="white" CLASS="TableRowColor">
180
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#OrthographicCamera(float, float, float)">OrthographicCamera</A></B>(float&nbsp;viewportWidth,
181
                   float&nbsp;viewportHeight,
182
                   float&nbsp;diamondAngle)</CODE>
183
 
184
<BR>
185
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new OrthographicCamera, using the given viewport width and height.</TD>
186
</TR>
187
</TABLE>
188
&nbsp;
189
<!-- ========== METHOD SUMMARY =========== -->
190
 
191
<A NAME="method_summary"><!-- --></A>
192
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
193
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
194
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
195
<B>Method Summary</B></FONT></TH>
196
</TR>
197
<TR BGCOLOR="white" CLASS="TableRowColor">
198
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
199
<CODE>&nbsp;void</CODE></FONT></TD>
200
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#findDirectionForIsoView(float, float, int)">findDirectionForIsoView</A></B>(float&nbsp;targetAngle,
201
                        float&nbsp;epsilon,
202
                        int&nbsp;maxIterations)</CODE>
203
 
204
<BR>
205
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
206
</TR>
207
<TR BGCOLOR="white" CLASS="TableRowColor">
208
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
209
<CODE>&nbsp;void</CODE></FONT></TD>
210
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#rotate(float)">rotate</A></B>(float&nbsp;angle)</CODE>
211
 
212
<BR>
213
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rotates the camera by the given angle around the direction vector.</TD>
214
</TR>
215
<TR BGCOLOR="white" CLASS="TableRowColor">
216
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217
<CODE>&nbsp;void</CODE></FONT></TD>
218
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#setToOrtho(boolean)">setToOrtho</A></B>(boolean&nbsp;yDown)</CODE>
219
 
220
<BR>
221
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets this camera to an orthographic projection using a viewport fitting the screen resolution, centered at
222
 (Gdx.graphics.getWidth()/2, Gdx.graphics.getHeight()/2), with the y-axis pointing up or down.</TD>
223
</TR>
224
<TR BGCOLOR="white" CLASS="TableRowColor">
225
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
226
<CODE>&nbsp;void</CODE></FONT></TD>
227
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#setToOrtho(boolean, float, float)">setToOrtho</A></B>(boolean&nbsp;yDown,
228
           float&nbsp;viewportWidth,
229
           float&nbsp;viewportHeight)</CODE>
230
 
231
<BR>
232
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets this camera to an orthographic projection, centered at (viewportWidth/2, viewportHeight/2), with the y-axis pointing up
233
 or down.</TD>
234
</TR>
235
<TR BGCOLOR="white" CLASS="TableRowColor">
236
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
237
<CODE>&nbsp;void</CODE></FONT></TD>
238
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#translate(float, float)">translate</A></B>(float&nbsp;x,
239
          float&nbsp;y)</CODE>
240
 
241
<BR>
242
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Moves the camera by the given amount on each axis.</TD>
243
</TR>
244
<TR BGCOLOR="white" CLASS="TableRowColor">
245
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
246
<CODE>&nbsp;void</CODE></FONT></TD>
247
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#translate(com.badlogic.gdx.math.Vector2)">translate</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;vec)</CODE>
248
 
249
<BR>
250
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Moves the camera by the given vector.</TD>
251
</TR>
252
<TR BGCOLOR="white" CLASS="TableRowColor">
253
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
254
<CODE>&nbsp;void</CODE></FONT></TD>
255
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#update()">update</A></B>()</CODE>
256
 
257
<BR>
258
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Recalculates the projection and view matrix of this camera and the <A HREF="../../../../com/badlogic/gdx/math/Frustum.html" title="class in com.badlogic.gdx.math"><CODE>Frustum</CODE></A> planes.</TD>
259
</TR>
260
<TR BGCOLOR="white" CLASS="TableRowColor">
261
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
262
<CODE>&nbsp;void</CODE></FONT></TD>
263
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#update(boolean)">update</A></B>(boolean&nbsp;updateFrustum)</CODE>
264
 
265
<BR>
266
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Recalculates the projection and view matrix of this camera and the <A HREF="../../../../com/badlogic/gdx/math/Frustum.html" title="class in com.badlogic.gdx.math"><CODE>Frustum</CODE></A> planes if <code>updateFrustum</code> is
267
 true.</TD>
268
</TR>
269
</TABLE>
270
&nbsp;<A NAME="methods_inherited_from_class_com.badlogic.gdx.graphics.Camera"><!-- --></A>
271
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
272
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
273
<TH ALIGN="left"><B>Methods inherited from class com.badlogic.gdx.graphics.<A HREF="../../../../com/badlogic/gdx/graphics/Camera.html" title="class in com.badlogic.gdx.graphics">Camera</A></B></TH>
274
</TR>
275
<TR BGCOLOR="white" CLASS="TableRowColor">
276
<TD><CODE><A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#apply(com.badlogic.gdx.graphics.GL10)">apply</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#getPickRay(float, float)">getPickRay</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#getPickRay(float, float, float, float, float, float)">getPickRay</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#lookAt(float, float, float)">lookAt</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#normalizeUp()">normalizeUp</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#project(com.badlogic.gdx.math.Vector3)">project</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#project(com.badlogic.gdx.math.Vector3, float, float, float, float)">project</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#rotate(float, float, float, float)">rotate</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#rotate(com.badlogic.gdx.math.Vector3, float)">rotate</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#rotateAround(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, float)">rotateAround</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#translate(float, float, float)">translate</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#translate(com.badlogic.gdx.math.Vector3)">translate</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#unproject(com.badlogic.gdx.math.Vector3)">unproject</A>, <A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#unproject(com.badlogic.gdx.math.Vector3, float, float, float, float)">unproject</A></CODE></TD>
277
</TR>
278
</TABLE>
279
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
280
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
281
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
282
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
283
</TR>
284
<TR BGCOLOR="white" CLASS="TableRowColor">
285
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
286
</TR>
287
</TABLE>
288
&nbsp;
289
<P>
290
 
291
<!-- ============ FIELD DETAIL =========== -->
292
 
293
<A NAME="field_detail"><!-- --></A>
294
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
295
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
296
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
297
<B>Field Detail</B></FONT></TH>
298
</TR>
299
</TABLE>
300
 
301
<A NAME="zoom"><!-- --></A><H3>
302
zoom</H3>
303
<PRE>
304
public float <B>zoom</B></PRE>
305
<DL>
306
<DD>the zoom of the camera
307
<P>
308
<DL>
309
</DL>
310
</DL>
311
 
312
<!-- ========= CONSTRUCTOR DETAIL ======== -->
313
 
314
<A NAME="constructor_detail"><!-- --></A>
315
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
316
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
317
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
318
<B>Constructor Detail</B></FONT></TH>
319
</TR>
320
</TABLE>
321
 
322
<A NAME="OrthographicCamera()"><!-- --></A><H3>
323
OrthographicCamera</H3>
324
<PRE>
325
public <B>OrthographicCamera</B>()</PRE>
326
<DL>
327
</DL>
328
<HR>
329
 
330
<A NAME="OrthographicCamera(float, float)"><!-- --></A><H3>
331
OrthographicCamera</H3>
332
<PRE>
333
public <B>OrthographicCamera</B>(float&nbsp;viewportWidth,
334
                          float&nbsp;viewportHeight)</PRE>
335
<DL>
336
<DD>Constructs a new OrthographicCamera, using the given viewport width and height. For pixel perfect 2D rendering just supply
337
 the screen size, for other unit scales (e.g. meters for box2d) proceed accordingly.
338
<P>
339
<DL>
340
<DT><B>Parameters:</B><DD><CODE>viewportWidth</CODE> - the viewport width<DD><CODE>viewportHeight</CODE> - the viewport height</DL>
341
</DL>
342
<HR>
343
 
344
<A NAME="OrthographicCamera(float, float, float)"><!-- --></A><H3>
345
OrthographicCamera</H3>
346
<PRE>
347
public <B>OrthographicCamera</B>(float&nbsp;viewportWidth,
348
                          float&nbsp;viewportHeight,
349
                          float&nbsp;diamondAngle)</PRE>
350
<DL>
351
<DD>Constructs a new OrthographicCamera, using the given viewport width and height. This will create a camera useable for
352
 iso-metric views. The diamond angle is specifies the angle of a tile viewed isometrically.
353
<P>
354
<DL>
355
<DT><B>Parameters:</B><DD><CODE>viewportWidth</CODE> - the viewport width<DD><CODE>viewportHeight</CODE> - the viewport height<DD><CODE>diamondAngle</CODE> - the angle in degrees</DL>
356
</DL>
357
 
358
<!-- ============ METHOD DETAIL ========== -->
359
 
360
<A NAME="method_detail"><!-- --></A>
361
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
362
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
363
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
364
<B>Method Detail</B></FONT></TH>
365
</TR>
366
</TABLE>
367
 
368
<A NAME="findDirectionForIsoView(float, float, int)"><!-- --></A><H3>
369
findDirectionForIsoView</H3>
370
<PRE>
371
public void <B>findDirectionForIsoView</B>(float&nbsp;targetAngle,
372
                                    float&nbsp;epsilon,
373
                                    int&nbsp;maxIterations)</PRE>
374
<DL>
375
<DD><DL>
376
</DL>
377
</DD>
378
</DL>
379
<HR>
380
 
381
<A NAME="update()"><!-- --></A><H3>
382
update</H3>
383
<PRE>
384
public void <B>update</B>()</PRE>
385
<DL>
386
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#update()">Camera</A></CODE></B></DD>
387
<DD>Recalculates the projection and view matrix of this camera and the <A HREF="../../../../com/badlogic/gdx/math/Frustum.html" title="class in com.badlogic.gdx.math"><CODE>Frustum</CODE></A> planes. Use this after you've manipulated
388
 any of the attributes of the camera.
389
<P>
390
<DD><DL>
391
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#update()">update</A></CODE> in class <CODE><A HREF="../../../../com/badlogic/gdx/graphics/Camera.html" title="class in com.badlogic.gdx.graphics">Camera</A></CODE></DL>
392
</DD>
393
<DD><DL>
394
</DL>
395
</DD>
396
</DL>
397
<HR>
398
 
399
<A NAME="update(boolean)"><!-- --></A><H3>
400
update</H3>
401
<PRE>
402
public void <B>update</B>(boolean&nbsp;updateFrustum)</PRE>
403
<DL>
404
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#update(boolean)">Camera</A></CODE></B></DD>
405
<DD>Recalculates the projection and view matrix of this camera and the <A HREF="../../../../com/badlogic/gdx/math/Frustum.html" title="class in com.badlogic.gdx.math"><CODE>Frustum</CODE></A> planes if <code>updateFrustum</code> is
406
 true. Use this after you've manipulated any of the attributes of the camera.
407
<P>
408
<DD><DL>
409
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/graphics/Camera.html#update(boolean)">update</A></CODE> in class <CODE><A HREF="../../../../com/badlogic/gdx/graphics/Camera.html" title="class in com.badlogic.gdx.graphics">Camera</A></CODE></DL>
410
</DD>
411
<DD><DL>
412
</DL>
413
</DD>
414
</DL>
415
<HR>
416
 
417
<A NAME="setToOrtho(boolean)"><!-- --></A><H3>
418
setToOrtho</H3>
419
<PRE>
420
public void <B>setToOrtho</B>(boolean&nbsp;yDown)</PRE>
421
<DL>
422
<DD>Sets this camera to an orthographic projection using a viewport fitting the screen resolution, centered at
423
 (Gdx.graphics.getWidth()/2, Gdx.graphics.getHeight()/2), with the y-axis pointing up or down.
424
<P>
425
<DD><DL>
426
<DT><B>Parameters:</B><DD><CODE>yDown</CODE> - whether y should be pointing down</DL>
427
</DD>
428
</DL>
429
<HR>
430
 
431
<A NAME="setToOrtho(boolean, float, float)"><!-- --></A><H3>
432
setToOrtho</H3>
433
<PRE>
434
public void <B>setToOrtho</B>(boolean&nbsp;yDown,
435
                       float&nbsp;viewportWidth,
436
                       float&nbsp;viewportHeight)</PRE>
437
<DL>
438
<DD>Sets this camera to an orthographic projection, centered at (viewportWidth/2, viewportHeight/2), with the y-axis pointing up
439
 or down.
440
<P>
441
<DD><DL>
442
<DT><B>Parameters:</B><DD><CODE>yDown</CODE> - whether y should be pointing down.<DD><CODE>viewportWidth</CODE> - <DD><CODE>viewportHeight</CODE> - </DL>
443
</DD>
444
</DL>
445
<HR>
446
 
447
<A NAME="rotate(float)"><!-- --></A><H3>
448
rotate</H3>
449
<PRE>
450
public void <B>rotate</B>(float&nbsp;angle)</PRE>
451
<DL>
452
<DD>Rotates the camera by the given angle around the direction vector. The direction and up vector will not be orthogonalized.
453
<P>
454
<DD><DL>
455
<DT><B>Parameters:</B><DD><CODE>angle</CODE> - </DL>
456
</DD>
457
</DL>
458
<HR>
459
 
460
<A NAME="translate(float, float)"><!-- --></A><H3>
461
translate</H3>
462
<PRE>
463
public void <B>translate</B>(float&nbsp;x,
464
                      float&nbsp;y)</PRE>
465
<DL>
466
<DD>Moves the camera by the given amount on each axis.
467
<P>
468
<DD><DL>
469
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the displacement on the x-axis<DD><CODE>y</CODE> - the displacement on the y-axis</DL>
470
</DD>
471
</DL>
472
<HR>
473
 
474
<A NAME="translate(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
475
translate</H3>
476
<PRE>
477
public void <B>translate</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;vec)</PRE>
478
<DL>
479
<DD>Moves the camera by the given vector.
480
<P>
481
<DD><DL>
482
<DT><B>Parameters:</B><DD><CODE>vec</CODE> - the displacement vector</DL>
483
</DD>
484
</DL>
485
<!-- ========= END OF CLASS DATA ========= -->
486
<HR>
487
 
488
 
489
<!-- ======= START OF BOTTOM NAVBAR ====== -->
490
<A NAME="navbar_bottom"><!-- --></A>
491
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
492
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
493
<TR>
494
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
495
<A NAME="navbar_bottom_firstrow"><!-- --></A>
496
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
497
  <TR ALIGN="center" VALIGN="top">
498
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
499
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
500
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
501
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/OrthographicCamera.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
502
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
503
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
504
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
505
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
506
  </TR>
507
</TABLE>
508
</TD>
509
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
510
libgdx API</EM>
511
</TD>
512
</TR>
513
 
514
<TR>
515
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
516
&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/Mesh.VertexDataType.html" title="enum in com.badlogic.gdx.graphics"><B>PREV CLASS</B></A>&nbsp;
517
&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/PerspectiveCamera.html" title="class in com.badlogic.gdx.graphics"><B>NEXT CLASS</B></A></FONT></TD>
518
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
519
  <A HREF="../../../../index.html?com/badlogic/gdx/graphics/OrthographicCamera.html" target="_top"><B>FRAMES</B></A>  &nbsp;
520
&nbsp;<A HREF="OrthographicCamera.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
521
&nbsp;<SCRIPT type="text/javascript">
522
  <!--
523
  if(window==top) {
524
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
525
  }
526
  //-->
527
</SCRIPT>
528
<NOSCRIPT>
529
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
530
</NOSCRIPT>
531
 
532
 
533
</FONT></TD>
534
</TR>
535
<TR>
536
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
537
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
538
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
539
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
540
</TR>
541
</TABLE>
542
<A NAME="skip-navbar_bottom"></A>
543
<!-- ======== END OF BOTTOM NAVBAR ======= -->
544
 
545
<HR>
546
 
547
                                <div style="font-size:9pt"><i>
548
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
549
                                </i></div>
550
 
551
</BODY>
552
</HTML>