Beispiel #1
0
        /// <summary>
        /// 绘制模拟按钮(LGraphics模式)
        /// </summary>
        ///
        /// <param name="g"></param>
        public void Draw(GLEx g)
        {
            if (!visible)
            {
                return;
            }
            g.BeginBatch();
            g.SetBatchAlpha(0.5f);
            up.Draw(g);
            left.Draw(g);
            right.Draw(g);
            down.Draw(g);

            triangle.Draw(g);
            square.Draw(g);
            circle.Draw(g);
            cancel.Draw(g);
            g.EndBatch();
        }