public unsafe void Draw(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.Draw(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); } } }
public unsafe void Draw(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.Draw(x, y, texturedRef); } }
public unsafe void Draw(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.Draw(x, y, texturedRef); } }
public unsafe void Draw(Texture t, int x, int y, int color) { 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.Draw(x, y, color, this.m_vPool); } else if (this.m_bPool) { fixed (CustomVertex.TransformedColoredTextured* texturedRef = this.m_vPool) { color = Renderer.GetQuadColor(color); texturedRef->Color = color; texturedRef[1].Color = color; texturedRef[2].Color = color; texturedRef[3].Color = color; Renderer.SetTexture(t); Renderer.DrawQuadPrecalc(texturedRef); } } }
public unsafe void Draw(Texture t, int x, int y, int color) { 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.Draw(x, y, color, this.m_vPool); } else if (this.m_bPool) { fixed(CustomVertex.TransformedColoredTextured *texturedRef = this.m_vPool) { color = Renderer.GetQuadColor(color); texturedRef->Color = color; texturedRef[1].Color = color; texturedRef[2].Color = color; texturedRef[3].Color = color; Renderer.SetTexture(t); Renderer.DrawQuadPrecalc(texturedRef); } } }
public unsafe void Draw(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.Draw(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); } } }