コード例 #1
0
 public bool Init(BufferCorrection correction)
 {
     _strCorrection   = correction;
     correctionFactor = 0;
     SetEffectTypeLabel(_strCorrection.type);
     return(true);
 }
コード例 #2
0
 public bool Init(BufferCorrection correction)
 {
     this._strCorrection   = correction;
     this.correctionFactor = 0;
     this.SetEffectTypeLabel(this._strCorrection.type);
     return(true);
 }
コード例 #3
0
 public BufferEffect(UILabel effectType, UITexture separator, UILabel value, BufferCorrection correction)
 {
     _uiEffectType  = effectType;
     _uiSeparator   = separator;
     _uiValue       = value;
     _strCorrection = correction;
 }
コード例 #4
0
        static void Bootstrap()
        {
            var single = Single;

            bufferCorrection = single._bufferCorrection;

            if (bufferCorrection == BufferCorrection.Manual)
            {
                //targetBufferSize = single._targetBufferSize;
                minBufferSize = single._minBufferSize;
                maxBufferSize = single._maxBufferSize;
            }
            //else if	(bufferCorrection == BufferCorrection.Auto)
            //{
            //	//targetBufferSize = single._targetBufferSize;
            //	minBufferSize = single._minBufferSize;
            //	maxBufferSize = single._maxBufferSize;
            //}

            //frameCount = (int)single._frameCount;
            //halfFrameCount = frameCount / 2;
            //thirdFrameCount = frameCount / 3;
            //quaterFrameCount = frameCount / 4;

            //frameCountBits = Compression.FloatCrusher.GetBitsForMaxValue((uint)frameCount);
        }