glTexCoord2f(1.0f, 1.0f);
//fc = (float)imageData[(32 * (j+1) / m_nCol + m_nCol * (32 * (i+1) / m_nRow))*3]/255.0f;
//glColor3f(fc,fc,fc);
colorR = (j+1) / iEach / 4.0;
colorG = 0.5;
colorB = (j+1) / iEach / 4.0;
glColor3f(colorR,colorG,colorB);
glVertex3f(x1 + (float)1/m_nCol, (float)(m_pEle[(i+1)*m_nCol+j+1])/(float)MaxHeight, z1 + (float)1/m_nRow);
}
}
glEnd();
}
}
80
最新推荐文章于 2021-11-26 17:19:58 发布