EmptyKeys.UserInterface.Media.TextureBase.GetNativeTexture C# (CSharp) Метод

GetNativeTexture() публичный абстрактный Метод

Gets the native texture.
public abstract GetNativeTexture ( ) : object
Результат object
        public abstract object GetNativeTexture();

Usage Example

Пример #1
0
        /// <summary>
        /// Draws the geometry texture.
        /// </summary>
        /// <param name="buffer">The buffer.</param>
        /// <param name="position">The position.</param>
        /// <param name="texture">The texture.</param>
        /// <param name="opacity">The opacity.</param>
        /// <param name="depth">The depth.</param>
        public override void DrawGeometryTexture(GeometryBuffer buffer, PointF position, TextureBase texture, float opacity, float depth)
        {
            if (basicEffect == null)
            {
                basicEffect = new BasicEffect(GraphicsDevice);
            }

            basicEffect.Alpha = opacity;
            basicEffect.DiffuseColor = new Vector3(1, 1, 1);
            basicEffect.Texture = texture.GetNativeTexture() as Texture2D;
            basicEffect.VertexColorEnabled = false;
            basicEffect.TextureEnabled = true;

            DrawGeometry(buffer, position, depth);
        }
All Usage Examples Of EmptyKeys.UserInterface.Media.TextureBase::GetNativeTexture