public Loon.Core.Geom.Point.Point2i Draw(int id, float x, float y, float rotation, LColor color) { this.Pack(); if (GLEx.Self != null) { PackEntry entry = GetEntry(id); if (entry == null) { return(null); } if (texture.IsBatch()) { texture.Draw(x, y, entry.bounds.Width(), entry.bounds.Height(), entry.bounds.left, entry.bounds.top, entry.bounds.right, entry.bounds.bottom, rotation, color); } else { GLEx.Self.DrawTexture(texture, x, y, entry.bounds.Width(), entry.bounds.Height(), entry.bounds.left, entry.bounds.top, entry.bounds.right, entry.bounds.bottom, rotation, color); } blittedSize.Set(entry.bounds.Width(), entry.bounds.Height()); } return(blittedSize); }