Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1107 | chris | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 | <!-- NewPage --> |
||
| 3 | <html lang="en"> |
||
| 4 | <head> |
||
| 5 | <!-- Generated by javadoc (version 1.7.0_17) on Sun Nov 03 15:35:45 CET 2013 --> |
||
| 6 | <title>OrthographicCamera (libgdx API)</title> |
||
| 7 | <meta name="date" content="2013-11-03"> |
||
| 8 | <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
||
| 9 | </head> |
||
| 10 | <body> |
||
| 11 | <script type="text/javascript"><!-- |
||
| 12 | if (location.href.indexOf('is-external=true') == -1) { |
||
| 13 | parent.document.title="OrthographicCamera (libgdx API)"; |
||
| 14 | } |
||
| 15 | //--> |
||
| 16 | </script> |
||
| 17 | <noscript> |
||
| 18 | <div>JavaScript is disabled on your browser.</div> |
||
| 19 | </noscript> |
||
| 20 | <!-- ========= START OF TOP NAVBAR ======= --> |
||
| 21 | <div class="topNav"><a name="navbar_top"> |
||
| 22 | <!-- --> |
||
| 23 | </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
||
| 24 | <!-- --> |
||
| 25 | </a> |
||
| 26 | <ul class="navList" title="Navigation"> |
||
| 27 | <li><a href="../../../../overview-summary.html">Overview</a></li> |
||
| 28 | <li><a href="package-summary.html">Package</a></li> |
||
| 29 | <li class="navBarCell1Rev">Class</li> |
||
| 30 | <li><a href="class-use/OrthographicCamera.html">Use</a></li> |
||
| 31 | <li><a href="package-tree.html">Tree</a></li> |
||
| 32 | <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
||
| 33 | <li><a href="../../../../index-all.html">Index</a></li> |
||
| 34 | <li><a href="../../../../help-doc.html">Help</a></li> |
||
| 35 | </ul> |
||
| 36 | <div class="aboutLanguage"><em> |
||
| 37 | libgdx API |
||
| 38 | <style> |
||
| 39 | body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt } |
||
| 40 | pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif } |
||
| 41 | h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold } |
||
| 42 | .TableHeadingColor { background:#EEEEFF; } |
||
| 43 | a { text-decoration:none } |
||
| 44 | a:hover { text-decoration:underline } |
||
| 45 | a:link, a:visited { color:blue } |
||
| 46 | table { border:0px } |
||
| 47 | .TableRowColor td:first-child { border-left:1px solid black } |
||
| 48 | .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black } |
||
| 49 | hr { border:0px; border-bottom:1px solid #333366; } |
||
| 50 | </style> |
||
| 51 | </em></div> |
||
| 52 | </div> |
||
| 53 | <div class="subNav"> |
||
| 54 | <ul class="navList"> |
||
| 55 | <li><a href="../../../../com/badlogic/gdx/graphics/Mesh.VertexDataType.html" title="enum in com.badlogic.gdx.graphics"><span class="strong">Prev Class</span></a></li> |
||
| 56 | <li><a href="../../../../com/badlogic/gdx/graphics/PerspectiveCamera.html" title="class in com.badlogic.gdx.graphics"><span class="strong">Next Class</span></a></li> |
||
| 57 | </ul> |
||
| 58 | <ul class="navList"> |
||
| 59 | <li><a href="../../../../index.html?com/badlogic/gdx/graphics/OrthographicCamera.html" target="_top">Frames</a></li> |
||
| 60 | <li><a href="OrthographicCamera.html" target="_top">No Frames</a></li> |
||
| 61 | </ul> |
||
| 62 | <ul class="navList" id="allclasses_navbar_top"> |
||
| 63 | <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
||
| 64 | </ul> |
||
| 65 | <div> |
||
| 66 | <script type="text/javascript"><!-- |
||
| 67 | allClassesLink = document.getElementById("allclasses_navbar_top"); |
||
| 68 | if(window==top) { |
||
| 69 | allClassesLink.style.display = "block"; |
||
| 70 | } |
||
| 71 | else { |
||
| 72 | allClassesLink.style.display = "none"; |
||
| 73 | } |
||
| 74 | //--> |
||
| 75 | </script> |
||
| 76 | </div> |
||
| 77 | <div> |
||
| 78 | <ul class="subNavList"> |
||
| 79 | <li>Summary: </li> |
||
| 80 | <li>Nested | </li> |
||
| 81 | <li><a href="#field_summary">Field</a> | </li> |
||
| 82 | <li><a href="#constructor_summary">Constr</a> | </li> |
||
| 83 | <li><a href="#method_summary">Method</a></li> |
||
| 84 | </ul> |
||
| 85 | <ul class="subNavList"> |
||
| 86 | <li>Detail: </li> |
||
| 87 | <li><a href="#field_detail">Field</a> | </li> |
||
| 88 | <li><a href="#constructor_detail">Constr</a> | </li> |
||
| 89 | <li><a href="#method_detail">Method</a></li> |
||
| 90 | </ul> |
||
| 91 | </div> |
||
| 92 | <a name="skip-navbar_top"> |
||
| 93 | <!-- --> |
||
| 94 | </a></div> |
||
| 95 | <!-- ========= END OF TOP NAVBAR ========= --> |
||
| 96 | <!-- ======== START OF CLASS DATA ======== --> |
||
| 97 | <div class="header"> |
||
| 98 | <div class="subTitle">com.badlogic.gdx.graphics</div> |
||
| 99 | <h2 title="Class OrthographicCamera" class="title">Class OrthographicCamera</h2> |
||
| 100 | </div> |
||
| 101 | <div class="contentContainer"> |
||
| 102 | <ul class="inheritance"> |
||
| 103 | <li>java.lang.Object</li> |
||
| 104 | <li> |
||
| 105 | <ul class="inheritance"> |
||
| 106 | <li><a href="../../../../com/badlogic/gdx/graphics/Camera.html" title="class in com.badlogic.gdx.graphics">com.badlogic.gdx.graphics.Camera</a></li> |
||
| 107 | <li> |
||
| 108 | <ul class="inheritance"> |
||
| 109 | <li>com.badlogic.gdx.graphics.OrthographicCamera</li> |
||
| 110 | </ul> |
||
| 111 | </li> |
||
| 112 | </ul> |
||
| 113 | </li> |
||
| 114 | </ul> |
||
| 115 | <div class="description"> |
||
| 116 | <ul class="blockList"> |
||
| 117 | <li class="blockList"> |
||
| 118 | <hr> |
||
| 119 | <br> |
||
| 120 | <pre>public class <span class="strong">OrthographicCamera</span> |
||
| 121 | extends <a href="../../../../com/badlogic/gdx/graphics/Camera.html" title="class in com.badlogic.gdx.graphics">Camera</a></pre> |
||
| 122 | <div class="block">A camera with orthographic projection.</div> |
||
| 123 | <dl><dt><span class="strong">Author:</span></dt> |
||
| 124 | <dd>mzechner</dd></dl> |
||
| 125 | </li> |
||
| 126 | </ul> |
||
| 127 | </div> |
||
| 128 | <div class="summary"> |
||
| 129 | <ul class="blockList"> |
||
| 130 | <li class="blockList"> |
||
| 131 | <!-- =========== FIELD SUMMARY =========== --> |
||
| 132 | <ul class="blockList"> |
||
| 133 | <li class="blockList"><a name="field_summary"> |
||
| 134 | <!-- --> |
||
| 135 | </a> |
||
| 136 | <h3>Field Summary</h3> |
||
| 137 | <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
||
| 138 | <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
||
| 139 | <tr> |
||
| 140 | <th class="colFirst" scope="col">Modifier and Type</th> |
||
| 141 | <th class="colLast" scope="col">Field and Description</th> |
||
| 142 | </tr> |
||
| 143 | <tr class="altColor"> |
||
| 144 | <td class="colFirst"><code>float</code></td> |
||
| 145 | <td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#zoom">zoom</a></strong></code> |
||
| 146 | <div class="block">the zoom of the camera</div> |
||
| 147 | </td> |
||
| 148 | </tr> |
||
| 149 | </table> |
||
| 150 | <ul class="blockList"> |
||
| 151 | <li class="blockList"><a name="fields_inherited_from_class_com.badlogic.gdx.graphics.Camera"> |
||
| 152 | <!-- --> |
||
| 153 | </a> |
||
| 154 | <h3>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></h3> |
||
| 155 | <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></li> |
||
| 156 | </ul> |
||
| 157 | </li> |
||
| 158 | </ul> |
||
| 159 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
||
| 160 | <ul class="blockList"> |
||
| 161 | <li class="blockList"><a name="constructor_summary"> |
||
| 162 | <!-- --> |
||
| 163 | </a> |
||
| 164 | <h3>Constructor Summary</h3> |
||
| 165 | <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
||
| 166 | <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
||
| 167 | <tr> |
||
| 168 | <th class="colOne" scope="col">Constructor and Description</th> |
||
| 169 | </tr> |
||
| 170 | <tr class="altColor"> |
||
| 171 | <td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#OrthographicCamera()">OrthographicCamera</a></strong>()</code> </td> |
||
| 172 | </tr> |
||
| 173 | <tr class="rowColor"> |
||
| 174 | <td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#OrthographicCamera(float, float)">OrthographicCamera</a></strong>(float viewportWidth, |
||
| 175 | float viewportHeight)</code> |
||
| 176 | <div class="block">Constructs a new OrthographicCamera, using the given viewport width and height.</div> |
||
| 177 | </td> |
||
| 178 | </tr> |
||
| 179 | </table> |
||
| 180 | </li> |
||
| 181 | </ul> |
||
| 182 | <!-- ========== METHOD SUMMARY =========== --> |
||
| 183 | <ul class="blockList"> |
||
| 184 | <li class="blockList"><a name="method_summary"> |
||
| 185 | <!-- --> |
||
| 186 | </a> |
||
| 187 | <h3>Method Summary</h3> |
||
| 188 | <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
||
| 189 | <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
||
| 190 | <tr> |
||
| 191 | <th class="colFirst" scope="col">Modifier and Type</th> |
||
| 192 | <th class="colLast" scope="col">Method and Description</th> |
||
| 193 | </tr> |
||
| 194 | <tr class="altColor"> |
||
| 195 | <td class="colFirst"><code>void</code></td> |
||
| 196 | <td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#rotate(float)">rotate</a></strong>(float angle)</code> |
||
| 197 | <div class="block">Rotates the camera by the given angle around the direction vector.</div> |
||
| 198 | </td> |
||
| 199 | </tr> |
||
| 200 | <tr class="rowColor"> |
||
| 201 | <td class="colFirst"><code>void</code></td> |
||
| 202 | <td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#setToOrtho(boolean)">setToOrtho</a></strong>(boolean yDown)</code> |
||
| 203 | <div class="block">Sets this camera to an orthographic projection using a viewport fitting the screen resolution, centered at |
||
| 204 | (Gdx.graphics.getWidth()/2, Gdx.graphics.getHeight()/2), with the y-axis pointing up or down.</div> |
||
| 205 | </td> |
||
| 206 | </tr> |
||
| 207 | <tr class="altColor"> |
||
| 208 | <td class="colFirst"><code>void</code></td> |
||
| 209 | <td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#setToOrtho(boolean, float, float)">setToOrtho</a></strong>(boolean yDown, |
||
| 210 | float viewportWidth, |
||
| 211 | float viewportHeight)</code> |
||
| 212 | <div class="block">Sets this camera to an orthographic projection, centered at (viewportWidth/2, viewportHeight/2), with the y-axis pointing up |
||
| 213 | or down.</div> |
||
| 214 | </td> |
||
| 215 | </tr> |
||
| 216 | <tr class="rowColor"> |
||
| 217 | <td class="colFirst"><code>void</code></td> |
||
| 218 | <td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#translate(float, float)">translate</a></strong>(float x, |
||
| 219 | float y)</code> |
||
| 220 | <div class="block">Moves the camera by the given amount on each axis.</div> |
||
| 221 | </td> |
||
| 222 | </tr> |
||
| 223 | <tr class="altColor"> |
||
| 224 | <td class="colFirst"><code>void</code></td> |
||
| 225 | <td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#translate(com.badlogic.gdx.math.Vector2)">translate</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</a> vec)</code> |
||
| 226 | <div class="block">Moves the camera by the given vector.</div> |
||
| 227 | </td> |
||
| 228 | </tr> |
||
| 229 | <tr class="rowColor"> |
||
| 230 | <td class="colFirst"><code>void</code></td> |
||
| 231 | <td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#update()">update</a></strong>()</code> |
||
| 232 | <div class="block">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.</div> |
||
| 233 | </td> |
||
| 234 | </tr> |
||
| 235 | <tr class="altColor"> |
||
| 236 | <td class="colFirst"><code>void</code></td> |
||
| 237 | <td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/graphics/OrthographicCamera.html#update(boolean)">update</a></strong>(boolean updateFrustum)</code> |
||
| 238 | <div class="block">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 |
||
| 239 | true.</div> |
||
| 240 | </td> |
||
| 241 | </tr> |
||
| 242 | </table> |
||
| 243 | <ul class="blockList"> |
||
| 244 | <li class="blockList"><a name="methods_inherited_from_class_com.badlogic.gdx.graphics.Camera"> |
||
| 245 | <!-- --> |
||
| 246 | </a> |
||
| 247 | <h3>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></h3> |
||
| 248 | <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#lookAt(com.badlogic.gdx.math.Vector3)">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.Matrix4)">rotate</a>, <a href="../../../../com/badlogic/gdx/graphics/Camera.html#rotate(com.badlogic.gdx.math.Quaternion)">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#transform(com.badlogic.gdx.math.Matrix4)">transform</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></li> |
||
| 249 | </ul> |
||
| 250 | <ul class="blockList"> |
||
| 251 | <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
||
| 252 | <!-- --> |
||
| 253 | </a> |
||
| 254 | <h3>Methods inherited from class java.lang.Object</h3> |
||
| 255 | <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
||
| 256 | </ul> |
||
| 257 | </li> |
||
| 258 | </ul> |
||
| 259 | </li> |
||
| 260 | </ul> |
||
| 261 | </div> |
||
| 262 | <div class="details"> |
||
| 263 | <ul class="blockList"> |
||
| 264 | <li class="blockList"> |
||
| 265 | <!-- ============ FIELD DETAIL =========== --> |
||
| 266 | <ul class="blockList"> |
||
| 267 | <li class="blockList"><a name="field_detail"> |
||
| 268 | <!-- --> |
||
| 269 | </a> |
||
| 270 | <h3>Field Detail</h3> |
||
| 271 | <a name="zoom"> |
||
| 272 | <!-- --> |
||
| 273 | </a> |
||
| 274 | <ul class="blockListLast"> |
||
| 275 | <li class="blockList"> |
||
| 276 | <h4>zoom</h4> |
||
| 277 | <pre>public float zoom</pre> |
||
| 278 | <div class="block">the zoom of the camera</div> |
||
| 279 | </li> |
||
| 280 | </ul> |
||
| 281 | </li> |
||
| 282 | </ul> |
||
| 283 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
||
| 284 | <ul class="blockList"> |
||
| 285 | <li class="blockList"><a name="constructor_detail"> |
||
| 286 | <!-- --> |
||
| 287 | </a> |
||
| 288 | <h3>Constructor Detail</h3> |
||
| 289 | <a name="OrthographicCamera()"> |
||
| 290 | <!-- --> |
||
| 291 | </a> |
||
| 292 | <ul class="blockList"> |
||
| 293 | <li class="blockList"> |
||
| 294 | <h4>OrthographicCamera</h4> |
||
| 295 | <pre>public OrthographicCamera()</pre> |
||
| 296 | </li> |
||
| 297 | </ul> |
||
| 298 | <a name="OrthographicCamera(float, float)"> |
||
| 299 | <!-- --> |
||
| 300 | </a> |
||
| 301 | <ul class="blockListLast"> |
||
| 302 | <li class="blockList"> |
||
| 303 | <h4>OrthographicCamera</h4> |
||
| 304 | <pre>public OrthographicCamera(float viewportWidth, |
||
| 305 | float viewportHeight)</pre> |
||
| 306 | <div class="block">Constructs a new OrthographicCamera, using the given viewport width and height. For pixel perfect 2D rendering just supply |
||
| 307 | the screen size, for other unit scales (e.g. meters for box2d) proceed accordingly. The camera will show the region |
||
| 308 | [-viewportWidth/2, -(viewportHeight/2-1)] - [(viewportWidth/2-1), viewportHeight/2]</div> |
||
| 309 | <dl><dt><span class="strong">Parameters:</span></dt><dd><code>viewportWidth</code> - the viewport width</dd><dd><code>viewportHeight</code> - the viewport height</dd></dl> |
||
| 310 | </li> |
||
| 311 | </ul> |
||
| 312 | </li> |
||
| 313 | </ul> |
||
| 314 | <!-- ============ METHOD DETAIL ========== --> |
||
| 315 | <ul class="blockList"> |
||
| 316 | <li class="blockList"><a name="method_detail"> |
||
| 317 | <!-- --> |
||
| 318 | </a> |
||
| 319 | <h3>Method Detail</h3> |
||
| 320 | <a name="update()"> |
||
| 321 | <!-- --> |
||
| 322 | </a> |
||
| 323 | <ul class="blockList"> |
||
| 324 | <li class="blockList"> |
||
| 325 | <h4>update</h4> |
||
| 326 | <pre>public void update()</pre> |
||
| 327 | <div class="block"><strong>Description copied from class: <code><a href="../../../../com/badlogic/gdx/graphics/Camera.html#update()">Camera</a></code></strong></div> |
||
| 328 | <div class="block">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 |
||
| 329 | any of the attributes of the camera.</div> |
||
| 330 | <dl> |
||
| 331 | <dt><strong>Specified by:</strong></dt> |
||
| 332 | <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></dd> |
||
| 333 | </dl> |
||
| 334 | </li> |
||
| 335 | </ul> |
||
| 336 | <a name="update(boolean)"> |
||
| 337 | <!-- --> |
||
| 338 | </a> |
||
| 339 | <ul class="blockList"> |
||
| 340 | <li class="blockList"> |
||
| 341 | <h4>update</h4> |
||
| 342 | <pre>public void update(boolean updateFrustum)</pre> |
||
| 343 | <div class="block"><strong>Description copied from class: <code><a href="../../../../com/badlogic/gdx/graphics/Camera.html#update(boolean)">Camera</a></code></strong></div> |
||
| 344 | <div class="block">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 |
||
| 345 | true. Use this after you've manipulated any of the attributes of the camera.</div> |
||
| 346 | <dl> |
||
| 347 | <dt><strong>Specified by:</strong></dt> |
||
| 348 | <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></dd> |
||
| 349 | </dl> |
||
| 350 | </li> |
||
| 351 | </ul> |
||
| 352 | <a name="setToOrtho(boolean)"> |
||
| 353 | <!-- --> |
||
| 354 | </a> |
||
| 355 | <ul class="blockList"> |
||
| 356 | <li class="blockList"> |
||
| 357 | <h4>setToOrtho</h4> |
||
| 358 | <pre>public void setToOrtho(boolean yDown)</pre> |
||
| 359 | <div class="block">Sets this camera to an orthographic projection using a viewport fitting the screen resolution, centered at |
||
| 360 | (Gdx.graphics.getWidth()/2, Gdx.graphics.getHeight()/2), with the y-axis pointing up or down.</div> |
||
| 361 | <dl><dt><span class="strong">Parameters:</span></dt><dd><code>yDown</code> - whether y should be pointing down</dd></dl> |
||
| 362 | </li> |
||
| 363 | </ul> |
||
| 364 | <a name="setToOrtho(boolean, float, float)"> |
||
| 365 | <!-- --> |
||
| 366 | </a> |
||
| 367 | <ul class="blockList"> |
||
| 368 | <li class="blockList"> |
||
| 369 | <h4>setToOrtho</h4> |
||
| 370 | <pre>public void setToOrtho(boolean yDown, |
||
| 371 | float viewportWidth, |
||
| 372 | float viewportHeight)</pre> |
||
| 373 | <div class="block">Sets this camera to an orthographic projection, centered at (viewportWidth/2, viewportHeight/2), with the y-axis pointing up |
||
| 374 | or down.</div> |
||
| 375 | <dl><dt><span class="strong">Parameters:</span></dt><dd><code>yDown</code> - whether y should be pointing down.</dd><dd><code>viewportWidth</code> - </dd><dd><code>viewportHeight</code> - </dd></dl> |
||
| 376 | </li> |
||
| 377 | </ul> |
||
| 378 | <a name="rotate(float)"> |
||
| 379 | <!-- --> |
||
| 380 | </a> |
||
| 381 | <ul class="blockList"> |
||
| 382 | <li class="blockList"> |
||
| 383 | <h4>rotate</h4> |
||
| 384 | <pre>public void rotate(float angle)</pre> |
||
| 385 | <div class="block">Rotates the camera by the given angle around the direction vector. The direction and up vector will not be orthogonalized.</div> |
||
| 386 | <dl><dt><span class="strong">Parameters:</span></dt><dd><code>angle</code> - </dd></dl> |
||
| 387 | </li> |
||
| 388 | </ul> |
||
| 389 | <a name="translate(float, float)"> |
||
| 390 | <!-- --> |
||
| 391 | </a> |
||
| 392 | <ul class="blockList"> |
||
| 393 | <li class="blockList"> |
||
| 394 | <h4>translate</h4> |
||
| 395 | <pre>public void translate(float x, |
||
| 396 | float y)</pre> |
||
| 397 | <div class="block">Moves the camera by the given amount on each axis.</div> |
||
| 398 | <dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the displacement on the x-axis</dd><dd><code>y</code> - the displacement on the y-axis</dd></dl> |
||
| 399 | </li> |
||
| 400 | </ul> |
||
| 401 | <a name="translate(com.badlogic.gdx.math.Vector2)"> |
||
| 402 | <!-- --> |
||
| 403 | </a> |
||
| 404 | <ul class="blockListLast"> |
||
| 405 | <li class="blockList"> |
||
| 406 | <h4>translate</h4> |
||
| 407 | <pre>public void translate(<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</a> vec)</pre> |
||
| 408 | <div class="block">Moves the camera by the given vector.</div> |
||
| 409 | <dl><dt><span class="strong">Parameters:</span></dt><dd><code>vec</code> - the displacement vector</dd></dl> |
||
| 410 | </li> |
||
| 411 | </ul> |
||
| 412 | </li> |
||
| 413 | </ul> |
||
| 414 | </li> |
||
| 415 | </ul> |
||
| 416 | </div> |
||
| 417 | </div> |
||
| 418 | <!-- ========= END OF CLASS DATA ========= --> |
||
| 419 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
||
| 420 | <div class="bottomNav"><a name="navbar_bottom"> |
||
| 421 | <!-- --> |
||
| 422 | </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
||
| 423 | <!-- --> |
||
| 424 | </a> |
||
| 425 | <ul class="navList" title="Navigation"> |
||
| 426 | <li><a href="../../../../overview-summary.html">Overview</a></li> |
||
| 427 | <li><a href="package-summary.html">Package</a></li> |
||
| 428 | <li class="navBarCell1Rev">Class</li> |
||
| 429 | <li><a href="class-use/OrthographicCamera.html">Use</a></li> |
||
| 430 | <li><a href="package-tree.html">Tree</a></li> |
||
| 431 | <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
||
| 432 | <li><a href="../../../../index-all.html">Index</a></li> |
||
| 433 | <li><a href="../../../../help-doc.html">Help</a></li> |
||
| 434 | </ul> |
||
| 435 | <div class="aboutLanguage"><em>libgdx API</em></div> |
||
| 436 | </div> |
||
| 437 | <div class="subNav"> |
||
| 438 | <ul class="navList"> |
||
| 439 | <li><a href="../../../../com/badlogic/gdx/graphics/Mesh.VertexDataType.html" title="enum in com.badlogic.gdx.graphics"><span class="strong">Prev Class</span></a></li> |
||
| 440 | <li><a href="../../../../com/badlogic/gdx/graphics/PerspectiveCamera.html" title="class in com.badlogic.gdx.graphics"><span class="strong">Next Class</span></a></li> |
||
| 441 | </ul> |
||
| 442 | <ul class="navList"> |
||
| 443 | <li><a href="../../../../index.html?com/badlogic/gdx/graphics/OrthographicCamera.html" target="_top">Frames</a></li> |
||
| 444 | <li><a href="OrthographicCamera.html" target="_top">No Frames</a></li> |
||
| 445 | </ul> |
||
| 446 | <ul class="navList" id="allclasses_navbar_bottom"> |
||
| 447 | <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
||
| 448 | </ul> |
||
| 449 | <div> |
||
| 450 | <script type="text/javascript"><!-- |
||
| 451 | allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
||
| 452 | if(window==top) { |
||
| 453 | allClassesLink.style.display = "block"; |
||
| 454 | } |
||
| 455 | else { |
||
| 456 | allClassesLink.style.display = "none"; |
||
| 457 | } |
||
| 458 | //--> |
||
| 459 | </script> |
||
| 460 | </div> |
||
| 461 | <div> |
||
| 462 | <ul class="subNavList"> |
||
| 463 | <li>Summary: </li> |
||
| 464 | <li>Nested | </li> |
||
| 465 | <li><a href="#field_summary">Field</a> | </li> |
||
| 466 | <li><a href="#constructor_summary">Constr</a> | </li> |
||
| 467 | <li><a href="#method_summary">Method</a></li> |
||
| 468 | </ul> |
||
| 469 | <ul class="subNavList"> |
||
| 470 | <li>Detail: </li> |
||
| 471 | <li><a href="#field_detail">Field</a> | </li> |
||
| 472 | <li><a href="#constructor_detail">Constr</a> | </li> |
||
| 473 | <li><a href="#method_detail">Method</a></li> |
||
| 474 | </ul> |
||
| 475 | </div> |
||
| 476 | <a name="skip-navbar_bottom"> |
||
| 477 | <!-- --> |
||
| 478 | </a></div> |
||
| 479 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
||
| 480 | <p class="legalCopy"><small> |
||
| 481 | <div style="font-size:9pt"><i> |
||
| 482 | Copyright © 2010-2013 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com) |
||
| 483 | </i></div> |
||
| 484 | </small></p> |
||
| 485 | </body> |
||
| 486 | </html> |