/// <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);
}