public void setTexCoords(int index, VertexArray arr, float scale, float[] bias) { if (!VertexBuffer.verifyTextureUnit(index) || !this.verifyMutable()) { return; } VertexArrayTextureUnit textureUnit = this.m_textureUnits[index]; this.m_textureUnits[index] = arr == null ? (VertexArrayTextureUnit)null : new VertexArrayTextureUnit(arr, scale, bias); if (textureUnit != null) { ; } this.updateVertexCount(); this.processTextureCoords(index); }
public VertexArray getTexCoords(int index, ref float[] scaleBias) { if (!VertexBuffer.verifyTextureUnit(index)) { return((VertexArray)null); } VertexArrayTextureUnit textureUnit = this.m_textureUnits[index]; if (textureUnit == null) { return((VertexArray)null); } if (scaleBias != null) { scaleBias[0] = textureUnit.texcoordScale; scaleBias[1] = textureUnit.texcoordBiasU; scaleBias[2] = textureUnit.texcoordBiasV; scaleBias[3] = 0.0f; } return(textureUnit.texcoords); }