Example #1
0
 public ClippingHelper()
 {
     Frustum          = JavaHelper.ReturnRectangularArray <float>(16, 16);
     ProjectionMatrix = new float[16];
     ModelviewMatrix  = new float[16];
     ClippingMatrix   = new float[16];
 }
Example #2
0
        public ChunkCache(World par1World, int par2, int par3, int par4, int par5, int par6, int par7)
        {
            WorldObj = par1World;
            ChunkX   = par2 >> 4;
            ChunkZ   = par4 >> 4;
            int i = par5 >> 4;
            int j = par7 >> 4;

            ChunkArray    = JavaHelper.ReturnRectangularArray <Chunk>((i - ChunkX) + 1, (j - ChunkZ) + 1);
            Field_48467_d = true;

            for (int k = ChunkX; k <= i; k++)
            {
                for (int l = ChunkZ; l <= j; l++)
                {
                    Chunk chunk = par1World.GetChunkFromChunkCoords(k, l);

                    if (chunk == null)
                    {
                        continue;
                    }

                    ChunkArray[k - ChunkX][l - ChunkZ] = chunk;

                    if (!chunk.GetAreLevelsEmpty(par3, par6))
                    {
                        Field_48467_d = false;
                    }
                }
            }
        }