Exemple #1
0
        public ParalaxBackground(string filename)
        {
            m_textureFile = filename;
            mTileX        = true;
            mTileY        = false;

            TypeConverterRegistration.Register <Vector2, Vector2Converter>();

            layerDepth          = 0;
            m_Offset            = new Vector2(0, 0);
            mXScrollerComponent = new NullScroller();
            mYScrollerComponent = new NullScroller();
        }
Exemple #2
0
 public Camera2d()
 {
     TypeConverterRegistration.Register <Vector2, Vector2Converter>();
     InitializeComponent();
 }