public void DrawTriangle(Triangle vertexTriangle, ColourInfo colour, RectangleF?textureRect = null, Action <TexturedVertex2D> vertexAction = null, Vector2?inflationPercentage = null) { if (TextureGL == null || !TextureGL.Bind()) { return; } TextureGL.DrawTriangle(vertexTriangle, TextureBounds(textureRect), colour, vertexAction, inflationPercentage); }
protected void DrawTriangle(TextureGL texture, Triangle vertexTriangle, ColourInfo drawColour, RectangleF?textureRect = null, Action <TexturedVertex2D> vertexAction = null, Vector2?inflationPercentage = null) => texture.DrawTriangle(vertexTriangle, drawColour, textureRect, vertexAction, inflationPercentage);