Переглянути джерело

more TerrainGrid javadoc

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8676 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
bre..ns 14 роки тому
батько
коміт
b53c8737c0

+ 9 - 0
engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java

@@ -118,6 +118,15 @@ public class TerrainGrid extends TerrainQuad {
             this.location = location;
         }
 
+        /**
+         * This is executed if the camera has moved into a new CameraCell and will load in
+         * the new TerrainQuad tiles to be children of this TerrainGrid parent.
+         * It will first check the LRU cache to see if the terrain tile is already there,
+         * if it is not there, it will load it in and then cache that tile.
+         * The terrain tiles get added to the quad tree back on the OGL thread using the
+         * attachQuadAt() method. It also resets any cached values in TerrainQuad (such as
+         * neighbours).
+         */
         public void run() {
             for (int i = 0; i < 4; i++) {
                 for (int j = 0; j < 4; j++) {