Lines Matching refs:COL_NUM
83 #define COL_NUM (50) /* NUM in COLUMN */ macro
85 #define deltaCOL (2 * DMP_PI / (COL_NUM - 1))
88 GLfloat pos[ROW_NUM * COL_NUM][3];
89 GLfloat nor[ROW_NUM * COL_NUM][3];
91 GLushort s_Idx[COL_NUM * (ROW_NUM - 1) * 2];
106 for(int col = 0; col < COL_NUM; col++) in LoadSphere()
109 s_Vtx.pos[row * COL_NUM + col][0] =(GLfloat)sin(deltaROW * row) * cos(deltaCOL * col); in LoadSphere()
110 s_Vtx.pos[row * COL_NUM + col][1] =(GLfloat)cos(deltaROW * row); in LoadSphere()
111 s_Vtx.pos[row * COL_NUM + col][2] =(GLfloat)sin(deltaROW * row) * sin(deltaCOL * col); in LoadSphere()
113 s_Vtx.nor[row * COL_NUM + col][0] =(GLfloat)sin(deltaROW * row) * cos(deltaCOL * col); in LoadSphere()
114 s_Vtx.nor[row * COL_NUM + col][1] =(GLfloat)cos(deltaROW * row); in LoadSphere()
115 s_Vtx.nor[row * COL_NUM + col][2] =(GLfloat)sin(deltaROW * row) * sin(deltaCOL * col); in LoadSphere()
122 #define __INDEX(ROW, COL) ((ROW) * COL_NUM + (COL)) in LoadSphere()
123 for(int col = 0; col < COL_NUM; col++) in LoadSphere()
131 s_ObjectInfo.idxcnt[OBJECT_SPHERE] = COL_NUM * (ROW_NUM - 1) * 2; in LoadSphere()
132 s_ObjectInfo.vtxcnt[OBJECT_SPHERE] = ROW_NUM * COL_NUM; in LoadSphere()