// ===== #region Constructors // Designated constructor public SpriteText(Rectangle rectangle, String text, WrappedFont font, WrappedShader shader) { // Get ID this.id = nextID++; // Entry logging #if IS_LOGGING_METHODS Log.Write(String.Format("Entering method for {0}", this.Name)); #endif // Set instance variables this.layer = null; this.layerIndex = -1; this.depth = 0; this.shader = shader; this.needsUpdate = false; this.rectangle = rectangle; this.text = text; this.font = font; // Exit logging #if IS_LOGGING_METHODS Log.Write(String.Format("Exiting method for {0}", this.Name)); #endif }
// ===== #region Methods // Add sprite layer public void AddFont(WrappedFont font) { // Entry logging #if IS_LOGGING_METHODS Log.Write(String.Format("Entering method for {0} with {1}", this.Name, font.Name)); #endif // Add to list this.Fonts.Add(font); // Exit logging #if IS_LOGGING_METHODS Log.Write(String.Format("Exiting method for {0} with {1}", this.Name, font.Name)); #endif }