コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
        /// <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);
        }