Пример #1
0
 protected override void Draw(GiaScene context, Batcher batcher, Entity entity, ref AABB bounds)
 {
     ref var text = ref entity.Get <Text>();
Пример #2
0
 string DrawCallNub(GiaScene context)
 {
     return($"{Core.DrawCalls} Draws");
 }
Пример #3
0
 protected override void DebugDraw(GiaScene context, Batcher batcher, Entity entity, ref AABB bounds)
 {
     Gia.Debug.DeferWorldHollowRect(bounds.Bounds, Color.Orange);
     Gia.Debug.DeferWorldPixel(bounds.Bounds.Location, Color.Orange, 4);
 }
Пример #4
0
 string FpsNub(GiaScene context)
 {
     return(((int)(1f / Time.UnscaledDeltaTime)).ToString() + " FPS");
 }