예제 #1
0
 public unsafe void DrawGame(Texture t, int x, int y)
 {
     fixed(CustomVertex.TransformedColoredTextured *texturedRef = m_vPool)
     {
         texturedRef->Tu   = 0f;
         texturedRef->Tv   = 0f;
         texturedRef[1].Tu = 0f;
         texturedRef[1].Tv = 0f;
         texturedRef[2].Tu = 0f;
         texturedRef[2].Tv = 0f;
         texturedRef[3].Tu = 0f;
         texturedRef[3].Tv = 0f;
         t.DrawGame(x, y, texturedRef);
     }
 }
예제 #2
0
 public unsafe void DrawGame(Texture t, int x, int y)
 {
     fixed (CustomVertex.TransformedColoredTextured* texturedRef = m_vPool)
     {
         texturedRef->Tu = 0f;
         texturedRef->Tv = 0f;
         texturedRef[1].Tu = 0f;
         texturedRef[1].Tv = 0f;
         texturedRef[2].Tu = 0f;
         texturedRef[2].Tv = 0f;
         texturedRef[3].Tu = 0f;
         texturedRef[3].Tv = 0f;
         t.DrawGame(x, y, texturedRef);
     }
 }
예제 #3
0
        public unsafe void DrawGame(Texture t, int x, int y)
        {
            if (((this.m_xPool != x) || (this.m_yPool != y)) || ((this.m_tPool != t) || (this.m_fPool != t.Flip)))
            {
                fixed(CustomVertex.TransformedColoredTextured *texturedRef = this.m_vPool)
                {
                    texturedRef->Tu   = 0f;
                    texturedRef->Tv   = 0f;
                    texturedRef[1].Tu = 0f;
                    texturedRef[1].Tv = 0f;
                    texturedRef[2].Tu = 0f;
                    texturedRef[2].Tv = 0f;
                    texturedRef[3].Tu = 0f;
                    texturedRef[3].Tv = 0f;
                    this.m_tPool      = t;
                    this.m_xPool      = x;
                    this.m_yPool      = y;
                    this.m_fPool      = t.Flip;
                    this.m_bPool      = t.DrawGame(x, y, texturedRef);
                }
            }
            else if (this.m_bPool)
            {
                fixed(CustomVertex.TransformedColoredTextured *texturedRef2 = this.m_vPool)
                {
                    int quadColor = Renderer.GetQuadColor(0xffffff);

                    texturedRef2->Color   = quadColor;
                    texturedRef2[1].Color = quadColor;
                    texturedRef2[2].Color = quadColor;
                    texturedRef2[3].Color = quadColor;
                    Renderer.SetTexture(t);
                    Renderer.DrawQuadPrecalc(texturedRef2);
                }
            }
        }
예제 #4
0
        public unsafe void DrawGame(Texture t, int x, int y)
        {
            if (((this.m_xPool != x) || (this.m_yPool != y)) || (this.m_RenderVersion != Renderer.m_Version))
            {
                this.m_RenderVersion = Renderer.m_Version;
                this.m_xPool         = x;
                this.m_yPool         = y;
                this.m_bPool         = t.DrawGame(x, y, this.m_vPool);
            }
            else if (this.m_bPool)
            {
                fixed(CustomVertex.TransformedColoredTextured *texturedRef = this.m_vPool)
                {
                    int quadColor = Renderer.GetQuadColor(0xffffff);

                    texturedRef->Color   = quadColor;
                    texturedRef[1].Color = quadColor;
                    texturedRef[2].Color = quadColor;
                    texturedRef[3].Color = quadColor;
                    Renderer.SetTexture(t);
                    Renderer.DrawQuadPrecalc(texturedRef);
                }
            }
        }
예제 #5
0
 public unsafe void DrawGame(Texture t, int x, int y)
 {
     if (((this.m_xPool != x) || (this.m_yPool != y)) || (this.m_RenderVersion != Renderer.m_Version))
     {
         this.m_RenderVersion = Renderer.m_Version;
         this.m_xPool = x;
         this.m_yPool = y;
         this.m_bPool = t.DrawGame(x, y, this.m_vPool);
     }
     else if (this.m_bPool)
     {
         fixed (CustomVertex.TransformedColoredTextured* texturedRef = this.m_vPool)
         {
             int quadColor = Renderer.GetQuadColor(0xffffff);
             texturedRef->Color = quadColor;
             texturedRef[1].Color = quadColor;
             texturedRef[2].Color = quadColor;
             texturedRef[3].Color = quadColor;
             Renderer.SetTexture(t);
             Renderer.DrawQuadPrecalc(texturedRef);
         }
     }
 }
예제 #6
0
 public unsafe void DrawGame(Texture t, int x, int y)
 {
     if (((this.m_xPool != x) || (this.m_yPool != y)) || ((this.m_tPool != t) || (this.m_fPool != t.Flip)))
     {
         fixed (CustomVertex.TransformedColoredTextured* texturedRef = this.m_vPool)
         {
             texturedRef->Tu = 0f;
             texturedRef->Tv = 0f;
             texturedRef[1].Tu = 0f;
             texturedRef[1].Tv = 0f;
             texturedRef[2].Tu = 0f;
             texturedRef[2].Tv = 0f;
             texturedRef[3].Tu = 0f;
             texturedRef[3].Tv = 0f;
             this.m_tPool = t;
             this.m_xPool = x;
             this.m_yPool = y;
             this.m_fPool = t.Flip;
             this.m_bPool = t.DrawGame(x, y, texturedRef);
         }
     }
     else if (this.m_bPool)
     {
         fixed (CustomVertex.TransformedColoredTextured* texturedRef2 = this.m_vPool)
         {
             int quadColor = Renderer.GetQuadColor(0xffffff);
             texturedRef2->Color = quadColor;
             texturedRef2[1].Color = quadColor;
             texturedRef2[2].Color = quadColor;
             texturedRef2[3].Color = quadColor;
             Renderer.SetTexture(t);
             Renderer.DrawQuadPrecalc(texturedRef2);
         }
     }
 }