/// <summary> /// /// Draws texture on top of everything, should be called per frame for each GUI texture that has to be drawn /// </summary> public void DrawTexture(Texture2D texture, Rectangle rect) { GUITexture newTexture = new GUITexture(texture, rect); this.elementsToDraw.Add(newTexture); }
/// <summary> /// /// Draw given guiTexture on top of everything, should be called per frame for each GUI texture that has to be drawn /// </summary> public void DrawTexture(GUITexture guiTexture) { this.elementsToDraw.Add(guiTexture); }
/// <summary> /// /// Draws texture on top of everything, should be called per frame for each GUI texture that has to be drawn /// </summary> public void DrawTexture(Texture2D texture, Vector2 position, float width, float height) { GUITexture newTexture = new GUITexture(texture, position, width, height); this.elementsToDraw.Add(newTexture); }