/// <summary> /// Called when renderer performs drawings /// </summary> /// <param name="renderFrame">Render frame where you can draw</param> public override void OnRender(RenderFrame renderFrame) { if (IsCreated) { if (Material.Texture != null) { ParentGameObject.Transform.UpdateBoundsRectangle(); renderFrame.DrawTexture(Material.Texture, ParentGameObject.Transform.DrawingBoundings, Material.Opacity, Game.Renderer.InterpolationMode); } } }