Exemplo n.º 1
0
        public virtual void setProgramId(IRenderingEngine re, int programId)
        {
            this.programId = programId;

            shaderAttribWeights1 = re.getAttribLocation(programId, REShader.attributeNameWeights1);
            shaderAttribWeights2 = re.getAttribLocation(programId, REShader.attributeNameWeights2);
            shaderAttribPosition = re.getAttribLocation(programId, REShader.attributeNamePosition);
            shaderAttribNormal   = re.getAttribLocation(programId, REShader.attributeNameNormal);
            shaderAttribColor    = re.getAttribLocation(programId, REShader.attributeNameColor);
            shaderAttribTexture  = re.getAttribLocation(programId, REShader.attributeNameTexture);
        }
Exemplo n.º 2
0
 public virtual int getAttribLocation(int program, string name)
 {
     return(proxy.getAttribLocation(program, name));
 }