Esempio n. 1
0
 public DisplayObject(Display pDisplay, string pAssetFile, float pPosX, float pPosY, int pOriginX, int pOriginY, float pDepth, int pSrc_RectX = 0, int pSrc_RectY = 0, int pWidth = -1, int pHeight = -1, float pRotation=0, bool pIsExemptFromCamera = false)
 {
     aaDisplay = pDisplay;
     mAssetFile = pAssetFile;
     posX = pPosX;
     posY = pPosY;
     mOrigin = new Vector2(pOriginX, pOriginY);
     src_RectX = pSrc_RectX;
     src_RectY = pSrc_RectY;
     src_RectWidth = pWidth;
     src_RectHeight = pHeight;
     mDepth = pDepth;
     mHorizontalFlip = false;
     mVerticalFlip = false;
     mRotation = pRotation;
     mOpacity = 1.0f;
     mZoom = 1.0f;
     isExemptFromCamera = pIsExemptFromCamera;
     mBlendColor = Color.White;
     aaDisplay.AddToDisplayList(this);
     mIsShowing = false;
     Show();
 }
Esempio n. 2
0
 public DisplayObject(Display pDisplay, string pAssetFile, float pPosX, float pPosY, int pOriginX, int pOriginY, float pDepth, int pSrc_RectX = 0, int pSrc_RectY = 0, int pWidth = -1, int pHeight = -1, float pRotation = 0, bool pIsExemptFromCamera = false)
 {
     aaDisplay          = pDisplay;
     mAssetFile         = pAssetFile;
     posX               = pPosX;
     posY               = pPosY;
     mOrigin            = new Vector2(pOriginX, pOriginY);
     src_RectX          = pSrc_RectX;
     src_RectY          = pSrc_RectY;
     src_RectWidth      = pWidth;
     src_RectHeight     = pHeight;
     mDepth             = pDepth;
     mHorizontalFlip    = false;
     mVerticalFlip      = false;
     mRotation          = pRotation;
     mOpacity           = 1.0f;
     mZoom              = 1.0f;
     isExemptFromCamera = pIsExemptFromCamera;
     mBlendColor        = Color.White;
     aaDisplay.AddToDisplayList(this);
     mIsShowing = false;
     Show();
 }
Esempio n. 3
0
 public void Show()
 {
     aaDisplay.AddToDisplayList(this);
 }