Esempio n. 1
0
        private void updateBlending()
        {
            _currentBlending = _isBlending ? MonoGameGraphicsHelpers.convertBlending(_srcFunction, _dstFunction) : _defaultBlending;

            if (_beginSpriteBatchCalled)
            {
                flush();
            }
        }
Esempio n. 2
0
        private void updateAddressMode()
        {
            _samplerState = new SamplerState
            {
                Filter   = _samplerState.Filter,
                AddressU = MonoGameGraphicsHelpers.convertTextureAddressMode(_currentUMode),
                AddressV = MonoGameGraphicsHelpers.convertTextureAddressMode(_currentVMode)
            };

            endRendering();
        }
Esempio n. 3
0
        private void updateFilter()
        {
            var newSamplerState = new SamplerState
            {
                AddressU = _samplerState.AddressU,
                AddressV = _samplerState.AddressV,
                Filter   = MonoGameGraphicsHelpers.convertTextureFilter(_currentMinFilter, _currentMagFilter)
            };

            _samplerState = newSamplerState;

            endRendering();
        }
Esempio n. 4
0
        private void updateAddressMode()
        {
            _samplerState = new SamplerState
            {
                Filter   = _samplerState.Filter,
                AddressU = MonoGameGraphicsHelpers.convertTextureAddressMode(_currentUMode),
                AddressV = MonoGameGraphicsHelpers.convertTextureAddressMode(_currentVMode)
            };

            if (_beginSpriteBatchCalled)
            {
                flush();
            }
        }
Esempio n. 5
0
        private void updateFilter()
        {
            var newSamplerState = new SamplerState
            {
                AddressU = _samplerState.AddressU,
                AddressV = _samplerState.AddressV,
                Filter   = MonoGameGraphicsHelpers.convertTextureFilter(_currentMinFilter, _currentMagFilter)
            };

            _samplerState = newSamplerState;

            if (_beginSpriteBatchCalled)
            {
                flush();
            }
        }
Esempio n. 6
0
 private void updateBlending()
 {
     _currentBlending = _isBlending ? MonoGameGraphicsHelpers.convertBlending(_srcFunction, _dstFunction) : DefaultBlending;
 }