glTexCoord2f(1.0f, 0.0f);
//fc = (float)imageData[(32 * (j+1) / m_nCol + m_nCol * (32 * i / 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*m_nCol+j+1])/(float)MaxHeight, z1);
glTexCoord2f(0.0f, 1.0f);
//fc = (float)imageData[(32 * j / m_nCol + m_nCol * (32 * (i+1) / m_nRow))*3]/255.0f;
//glColor3f(fc,fc,fc);
colorR = (j) / iEach / 4.0;
colorG = 0.5;
colorB = (j) / iEach / 4.0;
glColor3f(colorR,colorG,colorB);
glVertex3f(x1, (float)(m_pEle[(i+1)*m_nCol+j])/(float)MaxHeight, z1 + (float)1/m_nRow);
467
最新推荐文章于 2024-08-07 16:47:35 发布