//Construct a new DatabaseParams as a copy of a given DatabaseParams
 public DatabaseParams(DatabaseParams toCopy)
 {
     pixelScale     = toCopy.getPixelScale();
     alphaColor     = toCopy.getAlphaColor();
     alphaThreshold = toCopy.getAlphaThreshold();
     alphaSoftness  = toCopy.getAlphaThreshold();
     hasAlpha       = toCopy.getHasAlpha();
     minPhi         = toCopy.getMinPhi();
     maxPhi         = toCopy.getMaxPhi();
     minTheta       = toCopy.getMinTheta();
     maxTheta       = toCopy.getMaxTheta();
     phiRescaled    = toCopy.getPhiRescaled();
     thetaRescaled  = toCopy.getThetaRescaled();
     invertPhi      = toCopy.getInvertPhi();
     invertTheta    = toCopy.getInvertTheta();
     phiAlignment   = toCopy.getPhiAlignment();
     thetaAlignment = toCopy.getThetaAlignment();
     directory      = toCopy.getDirectory();
     online         = toCopy.getOnline();
 }
Example #2
0
 //Create and return a new Sprite from the given texture
 private Sprite spriteFromTexture(Texture2D tex)
 {
     return(Sprite.Create(tex, new Rect(0, 0, tex.width, tex.height), new Vector2(0.5f, 0.5f), databaseParams.getPixelScale()));
 }