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); }
public void Draw(Quad vertexQuad, Color4 colour, RectangleF?textureRect = null, VertexBatch <TexturedVertex2D> spriteBatch = null, Vector2?inflationPercentage = null) { if (TextureGL == null || !TextureGL.Bind()) { return; } TextureGL.Draw(vertexQuad, textureBounds(textureRect), colour, spriteBatch, inflationPercentage); }
public bool Bind(TextureUnit unit = TextureUnit.Texture0) => TextureGL.Bind(unit);