Ejemplo n.º 1
0
    public VisibleCache <T> GetProperty <T>(string propertyKey)
    {
        VisibleCache value = null;

        if (!Properties.TryGetValue(propertyKey, out value))
        {
            value = new VisibleCache <T>(Visible.Length);
            Properties[propertyKey] = value;
        }
        value = Properties[propertyKey];
        return(value as VisibleCache <T>);
    }
Ejemplo n.º 2
0
 public ClustersCache(int count)
 {
     TRSmatrices    = new VisibleCache <Matrix4x4>(count);
     BoundingBuffer = new BoundingSphere[count];
     Visible        = new bool[count];
 }