示例#1
0
        public void DrawQuad(Quad vertexQuad, ColourInfo colour, RectangleF?textureRect = null, Action <TexturedVertex2D> vertexAction = null, Vector2?inflationPercentage = null, Vector2?blendRangeOverride = null)
        {
            if (TextureGL == null || !TextureGL.Bind())
            {
                return;
            }

            TextureGL.DrawQuad(vertexQuad, TextureBounds(textureRect), colour, vertexAction, inflationPercentage, blendRangeOverride);
        }
示例#2
0
 protected void DrawQuad(TextureGL texture, Quad vertexQuad, ColourInfo drawColour, RectangleF?textureRect = null, Action <TexturedVertex2D> vertexAction = null,
                         Vector2?inflationPercentage = null, Vector2?blendRangeOverride = null)
 => texture.DrawQuad(vertexQuad, drawColour, textureRect, vertexAction, inflationPercentage: inflationPercentage, blendRangeOverride: blendRangeOverride);