public MemoizedModelAndPoses(PaintedCubeSpaceDisplayComponant newModel)
 {
     model       = newModel;
     poses       = new HashSet <MatrixAndOpacity>();
     geometry    = model.getVertexBuffer();
     indexBuffer = model.getIndexBuffer();
     instances   = new InstanceInfo[0];
 }
Esempio n. 2
0
 public static void addFlagWithMatrix(string path, Matrix matrix, PaintedCubeSpaceDisplayComponant model, float opacity)
 {
     path = path.ToUpper();
     if (FilePathsAndPositions.ContainsKey(getIndexString(path, opacity)))
     {
         //MemoizedModelAndPoses memoized = new MemoizedModelAndPoses(model);
         //memoized.addPose( new MatrixAndOpacity(position, scale,opacity));
         FilePathsAndPositions[getIndexString(path, opacity)].addPose(new MatrixAndOpacity(matrix, opacity));
     }
     else
     {
         MemoizedModelAndPoses memoized = new MemoizedModelAndPoses(model);
         memoized.addPose(new MatrixAndOpacity(matrix, opacity));
         FilePathsAndPositions.Add(getIndexString(path, opacity), memoized);
     }
 }